[PATCH] D13796: [libcxx] Use "-stdlib=libc++" when possible instead of '-nodefaultlibs' in the test suite.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 15 18:37:04 PDT 2015
EricWF created this revision.
EricWF added reviewers: mclow.lists, danalbert, jroelofs.
EricWF added a subscriber: cfe-commits.
Currently we use '-nodefaultlibs' when building and running the libc++ tests. However we should prefer using '-stdlib=libc++'.
This patch automatically detects when the test suite can use "-stdlib=libc++" and prefers it when possible.
We use `-stdlib=libc++` when the following are true:
1. `CXX` is clang or apple clang.
2. 'cxx_abi' is set to 'none'. This means that libc++ handles the ABI library dependency on its own.
3. We are using the default unwinder (ie not libunwind).
http://reviews.llvm.org/D13796
Files:
test/libcxx/compiler.py
test/libcxx/test/config.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13796.37553.patch
Type: text/x-patch
Size: 5674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151016/d0011d4c/attachment.bin>
More information about the cfe-commits
mailing list