[PATCH] D15920: [CMake] Add option to switch default C++ stdlib
Jonas Hahnfeld via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 6 03:47:14 PST 2016
Hahnfeld created this revision.
Hahnfeld added reviewers: chandlerc, mclow.lists, beanz.
Hahnfeld added a subscriber: cfe-commits.
Herald added subscribers: srhines, danalbert, tberghammer.
With this option one can set the default library to use if no `-stdlib=` is provided on compiler invocation (currently hard coded `libstdc++` which remains default)
Also add explicit option `-stdlib=libstdc++` to tests that require it and would fail when you choose `libc++`.
I haven't touched autotools which should be removed soon anyway. I'm fine if either someone else looks into it or if the patch only gets accepted afterwards.
http://reviews.llvm.org/D15920
Files:
CMakeLists.txt
include/clang/Config/config.h.cmake
include/clang/Config/config.h.in
lib/Driver/ToolChain.cpp
test/Driver/android-standalone.cpp
test/Driver/darwin-iphone-defaults.m
test/Driver/darwin-objc-gc.m
test/Driver/darwin-sanitizer-ld.c
test/Driver/gcc-toolchain.cpp
test/Driver/linux-header-search.cpp
test/Driver/mips-cs.cpp
test/Driver/mips-fsf.cpp
test/Driver/mips-img.cpp
test/Driver/sanitizer-ld.c
test/Driver/windows-cross.c
unittests/libclang/LibclangTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15920.44105.patch
Type: text/x-patch
Size: 96777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160106/5dfb7f43/attachment-0001.bin>
More information about the cfe-commits
mailing list