diff options
author | Martin Storsjo <martin@martin.st> | 2019-01-22 20:43:37 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-01-22 20:43:37 +0000 |
commit | cac80b29da529d44ceb63930679e3a1af9cace37 (patch) | |
tree | dc4e29ea8ff426af546b7320858bc299033a72ea | |
parent | 6f0ac617be1f4c2d58ab093d7f2d51dbed4d498d (diff) | |
download | libcxxabi-cac80b29da529d44ceb63930679e3a1af9cace37.tar.gz |
Enable LLVM_ENABLE_WARNINGS when building standalone out of tree
When built within the llvm runtimes directory, the runtimes
CMakeLists.txt adds the same.
Differential Revision: https://reviews.llvm.org/D56979
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@351873 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/Modules/HandleOutOfTreeLLVM.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Modules/HandleOutOfTreeLLVM.cmake b/cmake/Modules/HandleOutOfTreeLLVM.cmake index e50d026..3b19c5c 100644 --- a/cmake/Modules/HandleOutOfTreeLLVM.cmake +++ b/cmake/Modules/HandleOutOfTreeLLVM.cmake @@ -93,6 +93,8 @@ macro(configure_out_of_tree_llvm) endif() endif() if (LLVM_FOUND) + # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions. + set(LLVM_ENABLE_WARNINGS ON) include(AddLLVM OPTIONAL) include(HandleLLVMOptions OPTIONAL) endif() |