Use os.path.join for CC

This commit is contained in:
Simon Frei 2022-11-27 22:17:31 +01:00
parent 373558b2ec
commit c9ea58cfca
No known key found for this signature in database
GPG Key ID: 7C31D23ECB1006F3
1 changed files with 2 additions and 2 deletions

View File

@ -95,9 +95,9 @@ for target in BUILD_TARGETS:
'CGO_ENABLED': '1',
})
cc = '/'.join([
cc = os.path.join(
get_ndk_home(), "toolchains/llvm/prebuilt/", PLATFORM_DIRS[platform.system()], "bin",
target['cc'].format(min_sdk)])
target['cc'].format(min_sdk))
subprocess.check_call(
['go', 'run', 'build.go', '-goos', 'android',
'-goarch', target['goarch'], '-cc', cc,