mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[CMake] LLVM_COMPILE_FLAGS also applies to C files
LLVM_COMPILE_FLAGS also applies to C files, otherwise tuning flags, etc. won't be picked up. https://reviews.llvm.org/D67171 llvm-svn: 371173
This commit is contained in:
parent
57aa13d4fa
commit
6b0d77dd8a
@ -58,7 +58,7 @@ function(llvm_update_compile_flags name)
|
||||
if(update_src_props)
|
||||
foreach(fn ${sources})
|
||||
get_filename_component(suf ${fn} EXT)
|
||||
if("${suf}" STREQUAL ".cpp")
|
||||
if("${suf}" STREQUAL ".cpp" OR "${suf}" STREQUAL ".c")
|
||||
set_property(SOURCE ${fn} APPEND_STRING PROPERTY
|
||||
COMPILE_FLAGS "${target_compile_flags}")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user