From c9ea58cfca88168267ee9c1a4df03108f29e2427 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Sun, 27 Nov 2022 22:17:31 +0100 Subject: [PATCH] Use os.path.join for CC --- syncthing/build-syncthing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncthing/build-syncthing.py b/syncthing/build-syncthing.py index ed7e27a7..caacc773 100644 --- a/syncthing/build-syncthing.py +++ b/syncthing/build-syncthing.py @@ -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,