mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-14 20:22:30 +00: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
bc35ae7389
commit
412a8d7a83
@ -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…
x
Reference in New Issue
Block a user