Skip to content

Commit e40a234

Browse files
author
minggo
authored
Merge pull request #387 from ricardoquesada/android_toolchain_select
fix: add the possibility to change the NDK toolchain
2 parents ba1776b + edd42a0 commit e40a234

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/plugin_compile/build_android.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ def update_project(self, android_platform):
198198
shutil.copy(src_path, dst_path)
199199

200200
def get_toolchain_version(self, ndk_root, compile_obj):
201+
# it should be possible to override the toolchain
202+
if 'NDK_TOOLCHAIN_VERSION' in os.environ:
203+
return os.environ['NDK_TOOLCHAIN_VERSION']
201204
return '4.9'
202205

203206

0 commit comments

Comments
 (0)