diff options
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt index 93be30b597e..b85243fc751 100644 --- a/libcxx/src/CMakeLists.txt +++ b/libcxx/src/CMakeLists.txt @@ -260,6 +260,7 @@ if (LIBCXX_ENABLE_SHARED) DEFINE_SYMBOL "" ) cxx_set_common_defines(cxx_shared) + cxx_add_warning_flags(cxx_shared) # Link against LLVM libunwind if (LIBCXXABI_USE_LLVM_UNWINDER) @@ -360,6 +361,7 @@ if (LIBCXX_ENABLE_STATIC) OUTPUT_NAME "c++" ) cxx_set_common_defines(cxx_static) + cxx_add_warning_flags(cxx_static) if (LIBCXX_HERMETIC_STATIC_LIBRARY) # If the hermetic library doesn't define the operator new/delete functions |