Merge pull request #13 from akien-mga/android-python3-make-standalone-toolchain

Android: Force using python3 for `make_standalone_toolchain.py`
This commit is contained in:
Rémi Verschelde 2020-10-20 08:26:22 +02:00 committed by GitHub
commit d73d810ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):