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:
- CXX is clang or apple clang.
- 'cxx_abi' is set to 'none'. This means that libc++ handles the ABI library dependency on its own.
- We are using the default unwinder (ie not libunwind).
Maybe it makes sense to name this 'auto' instead of 'none'?