File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,19 @@ function(runtime_register_target name)
298
298
list (APPEND ${name} _extra_args -DLLVM_USE_LINKER=${LLVM_USE_LINKER} )
299
299
300
300
get_cmake_property (variable_names VARIABLES )
301
+ set (normalized_variable_names "" )
302
+ foreach (var ${variable_names} )
303
+ if (var MATCHES "^RUNTIMES_default_" )
304
+ string (REPLACE "RUNTIMES_default_" "RUNTIMES_${LLVM_DEFAULT_TARGET_TRIPLE} _" normalized_var "${var} " )
305
+ set (${normalized_var} "${${var} }" )
306
+ list (APPEND normalized_variable_names "${normalized_var} " )
307
+ else ()
308
+ list (APPEND normalized_variable_names "${var} " )
309
+ endif ()
310
+ endforeach ()
311
+
301
312
foreach (extra_name IN ITEMS ${ARG_BASE_NAME} ${name} )
302
- foreach (variable_name ${variable_names } )
313
+ foreach (variable_name ${normalized_variable_names } )
303
314
string (FIND "${variable_name} " "RUNTIMES_${extra_name} _" out)
304
315
if ("${out} " EQUAL 0)
305
316
string (REPLACE "RUNTIMES_${extra_name} _" "" new_name ${variable_name} )
You can’t perform that action at this time.
0 commit comments