You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# no GOARM for arm64 (yet?) -- https://github.com/golang/go/blob/1e72bf62183ea21b9affffd4450d44d994393899/src/cmd/internal/objabi/util.go#L40
38
+
arm64v*) export GOARCH='arm64' ;; \
39
+
i386) export GOARCH='386' ;; \
40
+
*) export GOARCH="$arch" ;; \
41
+
esac; \
29
42
\
30
43
[ "$os" = 'windows' ] && ext='.exe' || ext=''; \
31
44
\
32
-
GOOS="$os" GOARCH="$arch" \
33
-
go build \
34
-
-a -v \
35
-
-ldflags '-s -w' \
36
-
-tags netgo -installsuffix netgo \
37
-
-o "bin/bashbrew-$os-$arch$ext" \
38
-
./src/bashbrew; \
45
+
go build \
46
+
-a -v \
47
+
-ldflags '-s -w' \
48
+
# see https://github.com/golang/go/issues/9737#issuecomment-276817652 (and following comments) -- installsuffix is necessary (for now) to keep ARM
49
+
# can remove "$osArch" from "installsuffix" in Go 1.10+ (https://github.com/golang/go/commit/1b53f15ebb00dd158af674df410c7941abb2b933)
50
+
-tags netgo -installsuffix "netgo-$osArch" \
51
+
-o "bin/bashbrew-$osArch$ext" \
52
+
./src/bashbrew; \
39
53
\
54
+
case "$GOARCH" in \
55
+
# manifest-tool and GOARM aren't friends yet
56
+
# ... and estesp is probably a big fat "lololol" on supporting i386 :D
57
+
arm|386) continue ;; \
58
+
esac; \
40
59
# TODO verify GPG signatures for manifest-tool releases
0 commit comments