summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-01-22 20:50:33 +0000
committerMartin Storsjo <martin@martin.st>2019-01-22 20:50:33 +0000
commit495c3d3c90d308fe700daad319fb49ce23180a52 (patch)
treec7de85201446e2326645dade2784865349d3db5f
parenta13edd3ef25916be2cc794642cc2734ab498806b (diff)
downloadbcm5719-llvm-495c3d3c90d308fe700daad319fb49ce23180a52.tar.gz
bcm5719-llvm-495c3d3c90d308fe700daad319fb49ce23180a52.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/D56981 llvm-svn: 351875
-rw-r--r--libunwind/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt
index d5ac81146ef..b03adaa5ab0 100644
--- a/libunwind/CMakeLists.txt
+++ b/libunwind/CMakeLists.txt
@@ -73,6 +73,8 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
if (EXISTS ${LLVM_CMAKE_PATH})
+ # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions.
+ set(LLVM_ENABLE_WARNINGS ON)
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
include("${LLVM_CMAKE_PATH}/AddLLVM.cmake")
include("${LLVM_CMAKE_PATH}/HandleLLVMOptions.cmake")
OpenPOWER on IntegriCloud