Skip to content

Commit 36667b9

Browse files
authored
Merge pull request swiftlang#31006 from compnerd/explicit-paths
build: explicitly pass the path to python2,python3
2 parents 6f01826 + fa6bede commit 36667b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/build-script-impl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ function set_build_options_for_host() {
481481
appletvsimulator-* | \
482482
watchos-* | \
483483
watchsimulator-*)
484+
swift_cmake_options+=(
485+
-DPython2_EXECUTABLE=$(xcrun -f python2.7)
486+
-DPython3_EXECUTABLE=$(xcrun -f python3)
487+
)
484488
case ${host} in
485489
macosx-x86_64)
486490
SWIFT_HOST_TRIPLE="x86_64-apple-macosx${DARWIN_DEPLOYMENT_VERSION_OSX}"

0 commit comments

Comments
 (0)