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
  • Loading branch information
ob authored and Copybara-Service committed Mar 22, 2022
1 parent ad103c2 commit 3785677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/objc/libtool.sh
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 3785677

Please sign in to comment.