Android: Force using python3 for make_standalone_toolchain.py

This allows using the script on a system without Python 2 installed.
(`make_standalone_toolchain.py` uses `/usr/bin/env python` as shebang.)
This commit is contained in:
Rémi Verschelde 2020-10-13 15:06:46 +02:00
parent 331653f9c3
commit d40cfcf47c
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -415,9 +415,9 @@ def make_standalone_toolchain(opts: AndroidOpts, target: str, api: str):
if os.path.isdir(path_join(install_dir, 'bin')):
return # Looks like it's already there, so no need to re-create it
command = path_join(opts.android_ndk_root, 'build', 'tools', 'make_standalone_toolchain.py')
args = ['--verbose', '--force', '--api=' + api, '--arch=' + AndroidTargetTable.archs[target],
args = [command, '--verbose', '--force', '--api=' + api, '--arch=' + AndroidTargetTable.archs[target],
'--install-dir=' + install_dir]
run_command(command, args=args, name='make_standalone_toolchain')
run_command('python3', args=args, name='make_standalone_toolchain')
def strip_libs(opts: AndroidOpts, product: str, target: str, api: str):