|
13 | 13 | from pythonforandroid.logger import logger, info, shprint |
14 | 14 | from pythonforandroid.util import ( |
15 | 15 | current_directory, ensure_dir, walk_valid_filens, |
16 | | - BuildInterruptingException) |
| 16 | + BuildInterruptingException, build_platform) |
17 | 17 |
|
18 | 18 |
|
19 | 19 | class GuestPythonRecipe(TargetPythonRecipe): |
@@ -107,12 +107,12 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True): |
107 | 107 | toolchain_prefix=self.ctx.toolchain_prefix, |
108 | 108 | toolchain_version=self.ctx.toolchain_version) |
109 | 109 | toolchain = join(self.ctx.ndk_dir, 'toolchains', |
110 | | - toolchain, 'prebuilt', 'linux-x86_64') |
| 110 | + toolchain, 'prebuilt', build_platform) |
111 | 111 |
|
112 | 112 | env['CC'] = ( |
113 | 113 | '{clang} -target {target} -gcc-toolchain {toolchain}').format( |
114 | 114 | clang=join(self.ctx.ndk_dir, 'toolchains', 'llvm', 'prebuilt', |
115 | | - 'linux-x86_64', 'bin', 'clang'), |
| 115 | + build_platform, 'bin', 'clang'), |
116 | 116 | target=arch.target, |
117 | 117 | toolchain=toolchain) |
118 | 118 | env['AR'] = join(toolchain, 'bin', android_host) + '-ar' |
|
0 commit comments