Python 3 support for macOS/iOS builds (flutter/engine#26627)

This commit is contained in:
Chris Bracken
2021-06-08 10:39:02 -07:00
committed by GitHub
parent 04730bd191
commit 7516216e72
2 changed files with 3 additions and 4 deletions

2
DEPS
View File

@@ -98,7 +98,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '823808de422a8912bcec8a06f548da96d72cc682',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '3ae5da28db8cb028e21150f7472d0938fba2e057',
# Fuchsia compatibility
#

View File

@@ -28,11 +28,10 @@ def main():
def generate_gen_snapshot(directory, destination):
gen_snapshot_dir = os.path.join(directory, 'clang_x64', 'gen_snapshot')
if not os.path.isfile(gen_snapshot_dir):
print 'Cannot find gen_snapshot at', gen_snapshot_dir
print('Cannot find gen_snapshot at %s' % gen_snapshot_dir)
sys.exit(1)
subprocess.check_call(['xcrun', 'bitcode_strip', '-r', gen_snapshot_dir,
'-o', destination])
subprocess.check_call(['xcrun', 'bitcode_strip', '-r', gen_snapshot_dir, '-o', destination])
if __name__ == '__main__':