HomePhabricator

[driver][macOS] Link libarclite from the default toolchain when clang is…

Authored by arphaman on Apr 26 2019, 3:40 PM.

Description

[driver][macOS] Link libarclite from the default toolchain when clang is running in a toolchain outside of xcode

'libarclite' usually lives in the same toolchain as 'clang'. However, the
Swift open source toolchains for macOS distribute Clang without 'libarclite'.
In that case, to allow the linker to find 'libarclite', we point to the
'libarclite' that should be in the XcodeDefault toolchain instead. The
path to the toolchain is inferred from the SDK path if it's specified.

https://bugs.swift.org/browse/SR-9972
rdar://49947573

llvm-svn: 359353

Details

Committed
arphamanApr 26 2019, 3:40 PM
Parents
rG8504b5f64f47: Revert "[sanitizer] NFC: add static_assert to confirm that we use optimal…
Branches
Unknown
Tags
Unknown