summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-09-30 19:55:07 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-09-30 19:55:07 +0000
commit57737529feea5229c3d259ed0fe666f61ec42fac (patch)
tree662bbcccc11025607444c5961ace8e354ce4430b /llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
parent11c825f7db19d676acb33e12c20da1dc1cb56c02 (diff)
downloadbcm5719-llvm-57737529feea5229c3d259ed0fe666f61ec42fac.tar.gz
bcm5719-llvm-57737529feea5229c3d259ed0fe666f61ec42fac.zip
[DarwinDriver] Use -lto_library to specify the path for libLTO.dylib
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: 248932
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud