[clang] 30c57e2 - [Fuchsia] Correctly pass lists from STAGE2_ vars
Alex Brachet via cfe-commits
cfe-commits at lists.llvm.org
Wed May 17 10:25:29 PDT 2023
Author: Alex Brachet
Date: 2023-05-17T17:24:58Z
New Revision: 30c57e275e5aea5ec4c021f1a53687c3ae97b6f9
URL: https://github.com/llvm/llvm-project/commit/30c57e275e5aea5ec4c021f1a53687c3ae97b6f9
DIFF: https://github.com/llvm/llvm-project/commit/30c57e275e5aea5ec4c021f1a53687c3ae97b6f9.diff
LOG: [Fuchsia] Correctly pass lists from STAGE2_ vars
Differential Revision: https://reviews.llvm.org/D150799
Added:
Modified:
clang/cmake/caches/Fuchsia.cmake
Removed:
################################################################################
diff --git a/clang/cmake/caches/Fuchsia.cmake b/clang/cmake/caches/Fuchsia.cmake
index 1032dc82e740e..5596cc61359cd 100644
--- a/clang/cmake/caches/Fuchsia.cmake
+++ b/clang/cmake/caches/Fuchsia.cmake
@@ -182,7 +182,8 @@ get_cmake_property(variableNames VARIABLES)
foreach(variableName ${variableNames})
if(variableName MATCHES "^STAGE2_")
string(REPLACE "STAGE2_" "" new_name ${variableName})
- list(APPEND EXTRA_ARGS "-D${new_name}=${${variableName}}")
+ string(REPLACE ";" "|" value "${${variableName}}")
+ list(APPEND EXTRA_ARGS "-D${new_name}=${value}")
endif()
endforeach()
More information about the cfe-commits
mailing list