Skip to content

Commit fa6bede

Browse files
committed
build: explicitly pass the path to python2,python3
Explicitly pass the path to the python interpreter on macOS by using `xcrun` to find the tools.
1 parent c4b6f89 commit fa6bede

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)