Skip to content

Commit c64317b

Browse files
committed
Enable race detection option
Build Tile38 with the Go race detector using the GORACE=1 environment variable, such as: GORACE=1 make This is for debugging purposes only and shouldn't be used in production.
1 parent 53bed30 commit c64317b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

scripts/build.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,9 @@ core/gen.sh
3131
LDFLAGS="$LDFLAGS -extldflags '-static'"
3232
export CGO_ENABLED=0
3333

34-
# if [ "$NOMODULES" != "1" ]; then
35-
# export GO111MODULE=on
36-
# export GOFLAGS=-mod=vendor
37-
# go mod vendor
38-
# fi
39-
4034
if [[ "$GORACE" == "1" ]]; then
41-
goflags="$goflags -race"
35+
export CGO_ENABLED=1
36+
goflags="$goflags -race"
4237
fi
4338

4439
# Build and store objects into original directory.

0 commit comments

Comments
 (0)