mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user