[PATCH] D121822: [bootstrap] Allow passing options to sub-builds for all targets
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 11:41:54 PDT 2022
ldionne updated this revision to Diff 416270.
ldionne added a comment.
Poke CI.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121822/new/
https://reviews.llvm.org/D121822
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -343,6 +343,19 @@
endforeach()
endif()
+ # If we're passed any option like RUNTIMES_<project>_FOO, pass it through as <project>_FOO.
+ # For example, RUNTIMES_LIBCXX_TEST_CONFIG will be passed down as LIBCXX_TEST_CONFIG.
+ foreach(runtime ${LLVM_ENABLE_RUNTIMES})
+ string(TOUPPER "${runtime}" runtime_upper)
+ foreach(variableName ${variableNames})
+ if (variableName MATCHES "RUNTIMES_${runtime_upper}_.+")
+ string(REPLACE "RUNTIMES_" "" new_name "${variableName}")
+ string(REPLACE ";" "|" new_value "${${variableName}}")
+ list(APPEND ${name}_extra_args "-D${new_name}=${new_value}")
+ endif()
+ endforeach()
+ endforeach()
+
if(NOT RUNTIMES_${name}_LLVM_ENABLE_RUNTIMES AND NOT RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES)
string(REPLACE ";" "|" LLVM_ENABLE_RUNTIMES_PASSTHROUGH "${LLVM_ENABLE_RUNTIMES}")
list(APPEND ${name}_extra_args -DLLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES_PASSTHROUGH})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121822.416270.patch
Type: text/x-patch
Size: 1139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/1089fe30/attachment.bin>
More information about the llvm-commits
mailing list