Define LLVM_ENABLE_WARNINGS when building standalone clang to ensure warnings get enabled

llvm-svn: 297106
This commit is contained in:
Eric Fiselier 2017-03-07 00:15:18 +00:00
parent 2debda2306
commit c14f3fb0c3
1 changed files with 1 additions and 0 deletions

View 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)