From 03d2f677b2d44152c5e678712c9defb77915a3f1 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Tue, 5 Nov 2019 14:09:08 +0100 Subject: [PATCH] Fix docker prebuild script for amd64/x86_64 (#1441) --- docker/prebuild.sh | 2 ++ syncthing/build-syncthing.py | 1 + 2 files changed, 3 insertions(+) diff --git a/docker/prebuild.sh b/docker/prebuild.sh index 219aaa48..e2f357ce 100755 --- a/docker/prebuild.sh +++ b/docker/prebuild.sh @@ -5,6 +5,7 @@ for ARCH in arm x86 arm64 x86_64; do GOARCH=${ARCH} SDK=16 + # The values here must correspond with those in ../syncthing/build-syncthing.py case ${ARCH} in arm) GCC="arm-linux-androideabi-clang" @@ -19,6 +20,7 @@ for ARCH in arm x86 arm64 x86_64; do ;; x86_64) SDK=21 + GOARCH=amd64 GCC="x86_64-linux-android21-clang" ;; *) diff --git a/syncthing/build-syncthing.py b/syncthing/build-syncthing.py index c13ad1ad..cac04fbd 100644 --- a/syncthing/build-syncthing.py +++ b/syncthing/build-syncthing.py @@ -7,6 +7,7 @@ import platform SUPPORTED_PYTHON_PLATFORMS = ['Windows', 'Linux', 'Darwin'] +# The values here must correspond with those in ../docker/prebuild.sh BUILD_TARGETS = [ { 'arch': 'arm',