File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -291,17 +291,13 @@ add_llvm_component_library(LLVMSupport
291
291
LINK_COMPONENTS
292
292
Demangle
293
293
)
294
-
295
- if (BUILD_COMPILER_FOR_DRIVER)
296
- get_target_property (CURRENT_COMPILE_OPTIONS LLVMSupport COMPILE_OPTIONS)
297
- message (STATUS "Current compile options: ${CURRENT_COMPILE_OPTIONS} " )
298
- string (REPLACE "/wd4146" "" NEW_COMPILE_OPTIONS "${CURRENT_COMPILE_OPTIONS} " )
299
- string (REPLACE "/wd4244" "" NEW_COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} " )
300
- string (REPLACE "/wd4267" "" NEW_COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} " )
301
- string (REPLACE ";;" ";" NEW_COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} " )
302
- set_target_properties (LLVMSupport PROPERTIES COMPILE_OPTIONS "${NEW_COMPILE_OPTIONS} " )
303
- get_target_property (NEW_COMPILE_OPTIONS LLVMSupport COMPILE_OPTIONS)
304
- message (STATUS "New compile options: ${NEW_COMPILE_OPTIONS} " )
294
+
295
+ if (MSVC )
296
+ if (BUILD_COMPILER_FOR_DRIVER)
297
+ target_compile_options (LLVMSupport PRIVATE
298
+ /w34146 /w34244 /w34267
299
+ )
300
+ endif ()
305
301
endif ()
306
302
307
303
set (llvm_system_libs ${system_libs} )
You can’t perform that action at this time.
0 commit comments