Skip to content

Commit 49deb1c

Browse files
committed
Fix build platform hardcoded flags for python.py
1 parent f570def commit 49deb1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonforandroid/python.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pythonforandroid.logger import logger, info, shprint
1414
from pythonforandroid.util import (
1515
current_directory, ensure_dir, walk_valid_filens,
16-
BuildInterruptingException)
16+
BuildInterruptingException, build_platform)
1717

1818

1919
class GuestPythonRecipe(TargetPythonRecipe):
@@ -107,12 +107,12 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
107107
toolchain_prefix=self.ctx.toolchain_prefix,
108108
toolchain_version=self.ctx.toolchain_version)
109109
toolchain = join(self.ctx.ndk_dir, 'toolchains',
110-
toolchain, 'prebuilt', 'linux-x86_64')
110+
toolchain, 'prebuilt', build_platform)
111111

112112
env['CC'] = (
113113
'{clang} -target {target} -gcc-toolchain {toolchain}').format(
114114
clang=join(self.ctx.ndk_dir, 'toolchains', 'llvm', 'prebuilt',
115-
'linux-x86_64', 'bin', 'clang'),
115+
build_platform, 'bin', 'clang'),
116116
target=arch.target,
117117
toolchain=toolchain)
118118
env['AR'] = join(toolchain, 'bin', android_host) + '-ar'

0 commit comments

Comments
 (0)