summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-10-02 15:10:33 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-10-02 15:10:33 +0000
commita5efe3a66b9655a7f3ae6fa8d308455af3f50daa (patch)
tree68f9b9b367e5ace0683c26dbf090ae3c38f17c79 /clang/lib/Driver/ToolChains.h
parentf9989b04bf13c16f98e30d785596ff836a7a915f (diff)
downloadbcm5719-llvm-a5efe3a66b9655a7f3ae6fa8d308455af3f50daa.tar.gz
bcm5719-llvm-a5efe3a66b9655a7f3ae6fa8d308455af3f50daa.zip
[DarwinDriver] Reapply: Use -lto_library to specify the path for libLTO.dylib
Reapply r248935. Usually, when using LTO with a clang installation newer than the system's one, there's a libLTO.dylib version mismatch and LTO fails. One solution to this is to make ld point to the right libLTO.dylib by changing DYLD_LIBRARY_PATH. However, ld64 supports specifying the complete path to the desired libLTO.dylib through the -lto_library option. This commit adds support for the clang driver to use this option whenever it's capable of finding a libLTO.dylib in clang's installed library directory. This way, we don't need to rely on DYLD_LIBRARY_PATH nor get caught by version mismatches. Differential Revision: http://reviews.llvm.org/D13117 rdar://problem/7363476 llvm-svn: 249143
Diffstat (limited to 'clang/lib/Driver/ToolChains.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud