Much like we silence warnings about -flto in many cases to facilitate
authorChandler Carruth <chandlerc@gmail.com>
Sat, 7 Mar 2015 10:01:29 +0000 (10:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 7 Mar 2015 10:01:29 +0000 (10:01 +0000)
commit7e7dd47fc21daf11c12484f4e9c4585b70d91560
treeaefa290671bf891a6a74f97045da028926b8f6ce
parentdf397c520d48937df0a44bea3a49190176e107f2
Much like we silence warnings about -flto in many cases to facilitate
simplicity in build systems, silence '-stdlib=libc++' when linking. Even
if we're not linking C++ code per-se, we may be passing this flag so
that when we are linking C++ code we pick up the desired standard
library. While most build systems already provide separate C and C++
compile flags, many conflate link flags. Sadly, CMake is among them
causing this warning in a libc++ selfhost.

llvm-svn: 231559
clang/lib/Driver/Tools.cpp
clang/test/Driver/linux-ld.c