Skip to content

Commit 3785677

Browse files
obcopybara-github
authored andcommitted
Use python3 on macOS
macOS 12.3 removed `/usr/bin/python2.7` and `/usr/bin/python`. We need to use `python3` now. Closes #15045. PiperOrigin-RevId: 436548693
1 parent ad103c2 commit 3785677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/objc/libtool.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ function hash_objfile() {
6262
echo "$SYMLINK_NAME"
6363
}
6464

65-
python_executable=/usr/bin/python2.7
65+
python_executable=/usr/bin/python3
6666
if [[ ! -x "$python_executable" ]]; then
67-
python_executable=python
67+
python_executable=python3
6868
fi
6969

7070
ARGS=()

0 commit comments

Comments
 (0)