Skip to content

Commit af7c459

Browse files
committed
---
yaml --- r: 323567 b: refs/heads/tensorflow-next c: 2d8cf9d h: refs/heads/master i: 323565: 2e6a36f 323563: e8a8f1a 323559: 9196e9f 323551: 599cbb3
1 parent 4b45978 commit af7c459

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
14611461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14621462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14631463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464-
refs/heads/tensorflow-next: de364ce54bf499e1323d2dd1280eefc252626fe7
1464+
refs/heads/tensorflow-next: 2d8cf9d5bc94cdb75d80643710a090198fd44a7d

branches/tensorflow-next/utils/build-script-impl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,10 @@ function set_build_options_for_host() {
669669
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
670670
-DSANITIZER_MIN_OSX_VERSION="${cmake_osx_deployment_target}"
671671
-DLLVM_ENABLE_MODULES:BOOL="$(true_false ${LLVM_ENABLE_MODULES})"
672+
# NOTE(compnerd) this explicitly sets up the python executable
673+
# since we sometimes end up with python 3 and the tooling
674+
# currently relies on python 2.7
675+
-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2.7
672676
)
673677
if [[ $(is_llvm_lto_enabled) == "TRUE" ]]; then
674678
if [[ $(cmake_needs_to_specify_standard_computed_defaults) == "TRUE" ]]; then
@@ -2558,6 +2562,21 @@ for host in "${ALL_HOSTS[@]}"; do
25582562
cmake_options+=(
25592563
-DLLDB_CODESIGN_IDENTITY=""
25602564
-DLLDB_USE_SYSTEM_DEBUGSERVER:BOOL="${LLDB_USE_SYSTEM_DEBUGSERVER}"
2565+
2566+
# NOTE(compnerd) this explicitly sets up the python
2567+
# executable since we sometimes end up with python 3 and
2568+
# the tooling currently relies on python 2.7
2569+
-DPython_ADDITIONAL_VERSIONS="2.7"
2570+
-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2.7
2571+
-DPYTHON_LIBRARY="$(xcrun --sdk ${xcrun_sdk_name} --show-sdk-path)/System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.tbd"
2572+
-DPYTHON_INCLUDE_DIR="$(xcrun --sdk ${xcrun_sdk_name} --show-sdk-path)/System/Library/Frameworks/Python.framework/Headers"
2573+
)
2574+
else
2575+
cmake_options+=(
2576+
# NOTE(compnerd) this explicitly sets up the python
2577+
# executable since we sometimes end up with python 3 and
2578+
# the tooling currently relies on python 2.7
2579+
-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2.7
25612580
)
25622581
fi
25632582
fi

0 commit comments

Comments
 (0)