summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/ThreadSafetyTIL.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-09-11 00:52:05 +0000
committerNick Kledzik <kledzik@apple.com>2014-09-11 00:52:05 +0000
commit50bda292c829593c234ba4448f73ae485ead224a (patch)
treec2f2cbc089b5b896752f72ab8d99711c54d3889f /clang/lib/Analysis/ThreadSafetyTIL.cpp
parent292303dd4757f1709aa757542e11ec95194e6557 (diff)
downloadbcm5719-llvm-50bda292c829593c234ba4448f73ae485ead224a.tar.gz
bcm5719-llvm-50bda292c829593c234ba4448f73ae485ead224a.zip
If lld is renamed (or symlinked) to "ld" automatically pick the right flavor.
The existing system linkers on Darwin and Linux are called "ld". We'd like to eventually drop in lld as "ld" and have it just work. But lld is a universal linker that requires the first option to be -flavor to know which command line mode to emulate (gnu or darwin). This change tests if argv[0] is "ld" and if so, if the tool was built on MacOSX then assume the darwin flavor otherwise the gnu flavor. There are two test cases which copy lld to "ld" and then run it. One for darwin and one for linux. llvm-svn: 217566
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyTIL.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud