macOS 12.3 no longer ships non-3 python. Almost all of these scripts were launched by ninja, and the GN files already told it to run them under python3, so this is a fairly small change. The main effect is that if you run them manually, you now get the same behavior. (A small set of scripts, gn.py, gen.py, sync_source_lists_from_cmake.py, are for manual running. For these, it is an actual change.) Differential Revision: https://reviews.llvm.org/D122345
9 lines
207 B
Python
Executable File
9 lines
207 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Runs tablegen."""
|
|
|
|
import subprocess
|
|
import sys
|
|
|
|
# Prefix with ./ to run built binary, not arbitrary stuff from PATH.
|
|
sys.exit(subprocess.call(['./' + sys.argv[1]] + sys.argv[2:]))
|