1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

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

View file

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