File tree Expand file tree Collapse file tree 7 files changed +4
-9
lines changed Expand file tree Collapse file tree 7 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
105
105
set (LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_LIBRARY_OUTPUT_INTDIR} )
106
106
endif ()
107
107
108
- option (LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON )
109
108
option (LLVM_INSTALL_TOOLCHAIN_ONLY
110
109
"Only include toolchain files in the 'install' target." OFF )
111
110
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
62
62
if (LLVM_ENABLE_ZLIB )
63
63
find_package (ZLIB REQUIRED )
64
64
endif ()
65
- option (LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON )
66
65
option (LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON )
67
66
68
67
include (CMakeParseArguments )
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR LIBUNWIND_STANDALONE_B
73
73
endif ()
74
74
75
75
if (EXISTS ${LLVM_CMAKE_PATH} )
76
- # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions.
77
- set (LLVM_ENABLE_WARNINGS ON )
78
76
list (APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH} " )
79
77
include ("${LLVM_CMAKE_PATH} /AddLLVM.cmake" )
80
78
include ("${LLVM_CMAKE_PATH} /HandleLLVMOptions.cmake" )
Original file line number Diff line number Diff line change @@ -402,7 +402,6 @@ set(LLVM_TARGETS_TO_BUILD
402
402
list (REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD )
403
403
404
404
option (LLVM_ENABLE_PIC "Build Position-Independent Code" ON )
405
- option (LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON )
406
405
option (LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF )
407
406
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
408
407
option (LLVM_ENABLE_MODULE_DEBUGGING "Compile with -gmodules." ON )
Original file line number Diff line number Diff line change @@ -400,6 +400,8 @@ elseif(MINGW) # FIXME: Also cygwin?
400
400
endif ()
401
401
endif ()
402
402
403
+ option (LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON )
404
+
403
405
if ( MSVC )
404
406
include (ChooseMSVCCRT )
405
407
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ set(TARGET_TRIPLE "@TARGET_TRIPLE@")
38
38
39
39
set (LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@ )
40
40
41
+ set (LLVM_ENABLE_WARNINGS @LLVM_ENABLE_WARNINGS@ )
42
+
41
43
set (LLVM_ENABLE_EXPENSIVE_CHECKS @LLVM_ENABLE_EXPENSIVE_CHECKS@ )
42
44
43
45
set (LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@ )
Original file line number Diff line number Diff line change @@ -105,10 +105,6 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
105
105
# Avoid checking whether the compiler is working.
106
106
set (LLVM_COMPILER_CHECKED ON )
107
107
108
- # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions
109
- # resulting in unjustified successes by check_cxx_compiler_flag.
110
- set (LLVM_ENABLE_WARNINGS ON )
111
-
112
108
# Handle common options used by all runtimes.
113
109
include (AddLLVM )
114
110
include (HandleLLVMOptions )
You can’t perform that action at this time.
0 commit comments