File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ set(LIT "${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py")
135
135
# consecutive execution, which makes local builds fail faster.
136
136
set (SWIFT_LIT_ARGS "--incremental" CACHE STRING "Arguments to pass to lit" )
137
137
138
+ set (SWIFT_LIT_ENVIRONMENT "" CACHE STRING "Environment to use for lit invocations" )
139
+
138
140
if (NOT SWIFT_INCLUDE_TOOLS )
139
141
list (APPEND SWIFT_LIT_ARGS
140
142
"--path=${SWIFT_NATIVE_LLVM_TOOLS_PATH} "
@@ -390,6 +392,7 @@ foreach(SDK ${SWIFT_SDKS})
390
392
${command_upload_swift_reflection_test}
391
393
${command_clean_test_results_dir}
392
394
COMMAND
395
+ ${CMAKE_COMMAND} -E env ${SWIFT_LIT_ENVIRONMENT}
393
396
$< TARGET_FILE:Python3::Interpreter> "${LIT} "
394
397
${LIT_ARGS}
395
398
"--param" "swift_test_subset=${test_subset} "
@@ -409,6 +412,7 @@ foreach(SDK ${SWIFT_SDKS})
409
412
${command_upload_swift_reflection_test}
410
413
${command_clean_test_results_dir}
411
414
COMMAND
415
+ ${CMAKE_COMMAND} -E env ${SWIFT_LIT_ENVIRONMENT}
412
416
$< TARGET_FILE:Python3::Interpreter> "${LIT} "
413
417
${LIT_ARGS}
414
418
"--param" "swift_test_subset=${test_subset} "
You can’t perform that action at this time.
0 commit comments