Until someone rewrites the stdlib logic for Darwin so that we don't need to pass down the -stdlib argument to cc1. (see https://llvm.org/bugs/show_bug.cgi?id=30548) Differential Revision: https://reviews.llvm.org/D24601 llvm-svn: 282701
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