Skip to content

Commit 3ea8fd7

Browse files
committed
build: don't (fail to) build musl race binaries
The race detector doesn't work without glibc due to golang/go#14481. Fixes cockroachdb#15378.
1 parent 05acf1e commit 3ea8fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build-static-binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ archive=$1
88
source "$(dirname "${0}")"/build-common.sh
99

1010
time make build TYPE=release-linux-gnu GOFLAGS="${GOFLAGS-}" SUFFIX="${SUFFIX-}" TAGS="${TAGS-}"
11-
time make build TYPE=release-linux-musl GOFLAGS="${GOFLAGS-}" SUFFIX="${SUFFIX-}" TAGS="${TAGS-}"
11+
[[ "${GOFLAGS-}" == *-race* ]] || time make build TYPE=release-linux-musl GOFLAGS="${GOFLAGS-}" SUFFIX="${SUFFIX-}" TAGS="${TAGS-}"
1212
# Build test binaries. Note that the acceptance binary will not be included in
1313
# the archive, but is instead uploaded directly by push-aws.sh.
1414
time make testbuild TYPE=release-linux-gnu GOFLAGS="${GOFLAGS-}" SUFFIX="${SUFFIX-}" TAGS="${TAGS-} acceptance"

0 commit comments

Comments
 (0)