Skip to content

Commit 04ade20

Browse files
author
minggo
committed
Merge pull request #350 from minggo/v3
use clang since gcc is deprecated since r11
2 parents 5ccdb9c + 3070e7a commit 04ade20

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

plugins/plugin_compile/build_android.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,7 @@ 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-
# use the folder name in toolchains to check get gcc version
202-
toolchains_path = os.path.join(ndk_root, 'toolchains')
203-
dir_names = os.listdir(toolchains_path)
204-
# check if gcc 4.9 exists
205-
for dir_name in dir_names:
206-
if dir_name.endswith('4.9'):
207-
return 4.9
208-
209-
# use gcc 4.8
210-
compile_obj.add_warning_at_end(MultiLanguage.get_string('COMPILE_WARNING_TOOLCHAIN_FMT', '4.8'))
211-
return '4.8'
201+
return 'clang'
212202

213203

214204
def do_ndk_build(self, ndk_build_param, build_mode, compile_obj):

0 commit comments

Comments
 (0)