mirror of https://github.com/tidwall/tile38.git
Force disable cgo
This commit is contained in:
parent
60b054d58c
commit
81c41a2d3d
10
build.sh
10
build.sh
|
@ -163,11 +163,13 @@ fi
|
||||||
# generate the core package
|
# generate the core package
|
||||||
core/gen.sh
|
core/gen.sh
|
||||||
|
|
||||||
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
# build and store objects into original directory.
|
# build and store objects into original directory.
|
||||||
CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-server" cmd/tile38-server/*.go
|
go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-server" cmd/tile38-server/*.go
|
||||||
CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-cli" cmd/tile38-cli/*.go
|
go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-cli" cmd/tile38-cli/*.go
|
||||||
CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-benchmark" cmd/tile38-benchmark/*.go
|
go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-benchmark" cmd/tile38-benchmark/*.go
|
||||||
CGO_ENABLED=0 go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-luamemtest" cmd/tile38-luamemtest/*.go
|
go build -ldflags "$LDFLAGS -extldflags '-static'" -o "$OD/tile38-luamemtest" cmd/tile38-luamemtest/*.go
|
||||||
|
|
||||||
# test if requested
|
# test if requested
|
||||||
if [ "$1" == "test" ]; then
|
if [ "$1" == "test" ]; then
|
||||||
|
|
Loading…
Reference in New Issue