Skip to content

Commit 28fe087

Browse files
committed
Use python3 to launch lldb tests. (#27025)
1 parent 0a494ef commit 28fe087

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/build-script-impl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3373,6 +3373,7 @@ for host in "${ALL_HOSTS[@]}"; do
33733373
LLVM_LIT_ARGS="${LLVM_LIT_ARGS} --filter=[sS]wift"
33743374
fi
33753375

3376+
# SWIFT_ENABLE_TENSORFLOW: use python3 to launch llvm-lit below.
33763377
# Record the times test took and report the slowest.
33773378
LLVM_LIT_ARGS="${LLVM_LIT_ARGS} -v --time-tests"
33783379
if [[ "$using_xcodebuild" == "FALSE" ]] ; then
@@ -3381,7 +3382,7 @@ for host in "${ALL_HOSTS[@]}"; do
33813382
with_pushd ${lldb_build_dir} \
33823383
call ${NINJA_BIN} -j ${BUILD_JOBS} lldb-test-deps
33833384
with_pushd ${results_dir} \
3384-
call "${llvm_build_dir}/bin/llvm-lit" \
3385+
call "/usr/bin/env" "python3" "${llvm_build_dir}/bin/llvm-lit" \
33853386
"${lldb_build_dir}/lit" \
33863387
${LLVM_LIT_ARGS} \
33873388
--xunit-xml-output=${results_dir}/results.xml \
@@ -3390,7 +3391,7 @@ for host in "${ALL_HOSTS[@]}"; do
33903391
echo "Running LLDB swift compatibility tests against" \
33913392
"${LLDB_TEST_SWIFT_COMPATIBILITY}"
33923393
with_pushd ${results_dir} \
3393-
call "${llvm_build_dir}/bin/llvm-lit" \
3394+
call "/usr/bin/env" "python3" "${llvm_build_dir}/bin/llvm-lit" \
33943395
"${lldb_build_dir}/lit" \
33953396
${LLVM_LIT_ARGS} \
33963397
--xunit-xml-output=${results_dir}/results.xml \

0 commit comments

Comments
 (0)