diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index ebbe152be1d9949f4b88dbc0759d69d8cd6f9280..5ca20c92077e93dbff8eca59cbb69cbaacbe5f3c 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -49,8 +49,9 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) get_cmake_property(variableNames VARIABLES) foreach(varaibleName ${variableNames}) if(varaibleName MATCHES "^COMPILER_RT") + string(REPLACE ";" "\;" value "${${varaibleName}}") list(APPEND COMPILER_RT_PASSTHROUGH_VARIABLES - -D${varaibleName}=${${varaibleName}}) + -D${varaibleName}=${${value}}) endif() endforeach()