llvm-project/libcxx/lib
Eric Fiselier 5aedca96d5 [libcxx] Refactor CMakeLists.txt handling of compile and link flags to suppress warnings.
Summary:
Currently we have 5 variables that are used to specify options for building libcxx
1. `LIBCXX_CXX_FEATURE_FLAGS`
2. `LIBCXX_CXX_WARNING_FLAGS`
3. `LIBCXX_CXX_REQUIRED_FLAGS`
4. `compile_flags` (in libcxx/lib)
5. `link_flags` (in libcxx/lib)

The first three all get put into `CMAKE_CXX_FLAGS`. 
This changes the way flags are handled by only using 3 different options:

1. `LIBCXX_CXX_FLAGS` - general compile and link flags.
2. `LIBCXX_COMPILE_FLAGS` - compile only flags.
3. `LIBCXX_LINK_FLAGS` - link only flags.

This patch also removes the warning about `-nostdinc++` being unused during linking.



Reviewers: mclow.lists, danalbert

Reviewed By: danalbert

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6277

llvm-svn: 222080
2014-11-15 06:26:30 +00:00
..
CMakeLists.txt [libcxx] Refactor CMakeLists.txt handling of compile and link flags to suppress warnings. 2014-11-15 06:26:30 +00:00
buildit Not everyone uses bash, so fix test syntax. 2014-04-12 21:12:55 +00:00
libc++abi.exp Add typeinfo for char16_t, char32_t and nullptr. 2010-12-03 17:25:24 +00:00
libc++abi2.exp At least temporarily move operator new/delete from the abi back to here. I'm having trouble reexporting it as a weak symbol. 2012-02-25 21:36:01 +00:00
libc++sjlj-abi.exp on Darwin re-export C++0x type infos 2011-05-24 20:26:04 +00:00
libc++unexp.exp Effort to reduce the number of exported symbols 2010-12-17 14:46:43 +00:00
notweak.exp <rdar://problem/8279559> [libstdcxx] use new linker options to make symbols non-weak 2010-09-10 20:42:36 +00:00
weak.exp Fix <rdar://problem/10136825> 2011-10-04 23:11:56 +00:00