Skip to content

Commit

Permalink
Revert "[CMake][compiler-rt] Use COMPILE_OPTIONS and LINK_OPTIONS"
Browse files Browse the repository at this point in the history
This reverts commit d47565e.
  • Loading branch information
petrhosek committed Apr 27, 2022
1 parent d47565e commit 0571af0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions compiler-rt/cmake/Modules/CompilerRTUtils.cmake
Expand Up @@ -5,11 +5,19 @@ include(CheckSymbolExists)
# define a handy helper function for it. The compile flags setting in CMake
# has serious issues that make its syntax challenging at best.
function(set_target_compile_flags target)
set_property(TARGET ${target} PROPERTY COMPILE_OPTIONS ${ARGN})
set(argstring "")
foreach(arg ${ARGN})
set(argstring "${argstring} ${arg}")
endforeach()
set_property(TARGET ${target} PROPERTY COMPILE_FLAGS "${argstring}")
endfunction()

function(set_target_link_flags target)
set_property(TARGET ${target} PROPERTY LINK_OPTIONS ${ARGN})
set(argstring "")
foreach(arg ${ARGN})
set(argstring "${argstring} ${arg}")
endforeach()
set_property(TARGET ${target} PROPERTY LINK_FLAGS "${argstring}")
endfunction()

# Set the variable var_PYBOOL to True if var holds a true-ish string,
Expand Down

0 comments on commit 0571af0

Please sign in to comment.