File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler-rt/cmake/Modules Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -274,12 +274,11 @@ function(add_compiler_rt_runtime name type)
274
274
endif ()
275
275
276
276
if (type STREQUAL "OBJECT" )
277
- get_property (cflags_${libname} SOURCE ${sources_${libname}} PROPERTY COMPILE_FLAGS )
278
277
if (CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_TARGET )
279
- list (APPEND cflags_ ${libname} "--target=${CMAKE_C_COMPILER_TARGET} " )
278
+ list (APPEND extra_cflags_ ${libname} "--target=${CMAKE_C_COMPILER_TARGET} " )
280
279
endif ()
281
280
if (CMAKE_SYSROOT )
282
- list (APPEND cflags_ ${libname} "--sysroot=${CMAKE_SYSROOT} " )
281
+ list (APPEND extra_cflags_ ${libname} "--sysroot=${CMAKE_SYSROOT} " )
283
282
endif ()
284
283
string (REPLACE ";" " " extra_cflags_${libname} "${extra_cflags_${libname} }" )
285
284
string (REGEX MATCHALL "<[A-Za-z0-9_]*>" substitutions
@@ -297,7 +296,7 @@ function(add_compiler_rt_runtime name type)
297
296
string (REPLACE "<SOURCE>" "${sources_${libname} }"
298
297
compile_command_${libname} ${compile_command_${libname}} )
299
298
elseif (substitution STREQUAL "<FLAGS>" )
300
- string (REPLACE "<FLAGS>" "${CMAKE_C_FLAGS} ${cflags_ ${libname} } ${ extra_cflags_${libname} }"
299
+ string (REPLACE "<FLAGS>" "${CMAKE_C_FLAGS} ${extra_cflags_${libname} }"
301
300
compile_command_${libname} ${compile_command_${libname}} )
302
301
else ()
303
302
string (REPLACE "${substitution} " "" compile_command_${libname}
You can’t perform that action at this time.
0 commit comments