summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-01-22 20:43:37 +0000
committerMartin Storsjo <martin@martin.st>2019-01-22 20:43:37 +0000
commitcac80b29da529d44ceb63930679e3a1af9cace37 (patch)
treedc4e29ea8ff426af546b7320858bc299033a72ea
parent6f0ac617be1f4c2d58ab093d7f2d51dbed4d498d (diff)
downloadlibcxxabi-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.cmake2
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()