diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-10-15 20:27:15 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-10-15 20:27:15 +0000 |
commit | f2be7c28fc0e3b439ed36a7b8f34d05c8f16fd25 (patch) | |
tree | 30e3506cd3783b63351689301ebc81bd5575dfea | |
parent | 01dda1a46d43edf299a60806e0641c949cba1b8b (diff) | |
download | bcm5719-llvm-f2be7c28fc0e3b439ed36a7b8f34d05c8f16fd25.tar.gz bcm5719-llvm-f2be7c28fc0e3b439ed36a7b8f34d05c8f16fd25.zip |
Fix handling of -Wno-pedantic
llvm-svn: 250452
-rw-r--r-- | libcxx/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index 1d46e28528e..7017ce4079a 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -219,8 +219,9 @@ remove_flags(-DNDEBUG -UNDEBUG -D_DEBUG -stdlib=libc++ -stdlib=libstdc++ -lc++abi -m32) # FIXME(EricWF): See the FIXME on LIBCXX_ENABLE_PEDANTIC. -# Remove the -pedantic flag provided by LLVM. -remove_flags(-pedantic) +# Remove the -pedantic flag and -Wno-pedantic and -pedantic-errors +# so they don't get transformed into -Wno and -errors respectivly. +remove_flags(-Wno-pedantic -pedantic-errors -pedantic) # Required flags ============================================================== add_compile_flags_if_supported(-std=c++11) |