Skip to content

Commit 790e1a1

Browse files
authored
Merge pull request #30921 from compnerd/python2
test: lit still requires python2, explicitly use that
2 parents 5b94396 + b8bc8c2 commit 790e1a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ _Block_release(void) { }\n")
340340
endif()
341341

342342
execute_process(COMMAND
343-
"${PYTHON_EXECUTABLE}" "-c" "import psutil"
343+
$<TARGET_FILE:Python2::Interpreter> "-c" "import psutil"
344344
RESULT_VARIABLE python_psutil_status
345345
TIMEOUT 1 # second
346346
ERROR_QUIET)
@@ -400,7 +400,7 @@ _Block_release(void) { }\n")
400400
${command_upload_swift_reflection_test}
401401
${command_clean_test_results_dir}
402402
COMMAND
403-
${PYTHON_EXECUTABLE} "${LIT}"
403+
$<TARGET_FILE:Python2::Interpreter> "${LIT}"
404404
${LIT_ARGS}
405405
"--param" "swift_test_subset=${test_subset}"
406406
"--param" "swift_test_mode=${test_mode}"
@@ -419,7 +419,7 @@ _Block_release(void) { }\n")
419419
${command_upload_swift_reflection_test}
420420
${command_clean_test_results_dir}
421421
COMMAND
422-
${PYTHON_EXECUTABLE} "${LIT}"
422+
$<TARGET_FILE:Python2::Interpreter> "${LIT}"
423423
${LIT_ARGS}
424424
"--param" "swift_test_subset=${test_subset}"
425425
"--param" "swift_test_mode=${test_mode}"

0 commit comments

Comments
 (0)