Skip to content

Commit

Permalink
Use python3 on macOS
Browse files Browse the repository at this point in the history
macOS 12.3 removed `/usr/bin/python2.7` and `/usr/bin/python`. We need to use `python3` now.

Closes bazelbuild#15045.

PiperOrigin-RevId: 436548693
(cherry picked from commit 3785677)
  • Loading branch information
ob authored and brentleyjones committed Mar 22, 2022
1 parent c771c43 commit 571965d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/objc/libtool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ function hash_objfile() {
echo "$SYMLINK_NAME"
}

python_executable=/usr/bin/python2.7
python_executable=/usr/bin/python3
if [[ ! -x "$python_executable" ]]; then
python_executable=python
python_executable=python3
fi

ARGS=()
Expand Down

0 comments on commit 571965d

Please sign in to comment.