]> granicus.if.org Git - clang/commitdiff
Define LLVM_ENABLE_WARNINGS when building standalone clang to ensure warnings get...
authorEric Fiselier <eric@efcs.ca>
Tue, 7 Mar 2017 00:15:18 +0000 (00:15 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 7 Mar 2017 00:15:18 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297106 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index b84888aace151e44ea3f1107da1d895a78cf03c5..a095d2b8651d7bc57ec90c099fa2ab6684d9595c 100644 (file)
@@ -82,6 +82,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
     set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
   endif()
 
+  option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
   option(LLVM_INSTALL_TOOLCHAIN_ONLY
     "Only include toolchain files in the 'install' target." OFF)