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 | dfcb36bf9f57affd3841cf5720f6bf3c5555e139 (patch) | |
tree | 4d5accc6defca673f641567725a057e3a4e3cbed | |
parent | 63786296091d586094c07739f1c5f1c30ce224fd (diff) | |
download | bcm5719-llvm-dfcb36bf9f57affd3841cf5720f6bf3c5555e139.tar.gz bcm5719-llvm-dfcb36bf9f57affd3841cf5720f6bf3c5555e139.zip |
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
llvm-svn: 351873
-rw-r--r-- | libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake b/libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake index e50d0262f80..3b19c5c15cd 100644 --- a/libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake +++ b/libcxxabi/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() |