Darwin: fix stdlib handling when CLANG_DEFAULT_STDLIB is set
authorTim Northover <tnorthover@apple.com>
Mon, 15 Feb 2016 16:38:10 +0000 (16:38 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 15 Feb 2016 16:38:10 +0000 (16:38 +0000)
commit3a098c1b9fb5e05c2347bc2e081cc3f3adc3e60d
tree92c62822cbf88ffecd1a68bc85d618f7c91c76e5
parent04bf43bd838e21710a4a5e6d5cda93caa54c2d85
Darwin: fix stdlib handling when CLANG_DEFAULT_STDLIB is set

I'd accidentally skipped the CMake check in a premature optimisation. I'd also
put the original test in completely the wrong place.

Thanks Jonas Hahnfeld!

llvm-svn: 260898
clang/lib/Driver/ToolChains.cpp
clang/test/Driver/darwin-stdlib.cpp [moved from clang/darwin-stdlib.cpp with 100% similarity]