[libcxxabi] r351873 - Enable LLVM_ENABLE_WARNINGS when building standalone out of tree
Martin Storsjo
martin at martin.st
Tue Jan 22 12:43:37 PST 2019
Author: mstorsjo
Date: Tue Jan 22 12:43:37 2019
New Revision: 351873
URL: http://llvm.org/viewvc/llvm-project?rev=351873&view=rev
Log:
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
Modified:
libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
Modified: libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake?rev=351873&r1=351872&r2=351873&view=diff
==============================================================================
--- libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake (original)
+++ libcxxabi/trunk/cmake/Modules/HandleOutOfTreeLLVM.cmake Tue Jan 22 12:43:37 2019
@@ -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()
More information about the libcxx-commits
mailing list