Commit 4692c48d authored by cyberta's avatar cyberta
Browse files

workaround to build probe-engine with go1.15 (#866)

parent 86264d8f
set -e
if [ ! -z "$(go version | grep go1.15)" ]; then DISABLE_QUIC="DISABLE_QUIC"; fi
set -ex
case $1 in
export GOOS=darwin GOARCH=amd64
go build -o ./CLI/darwin/amd64 -ldflags="-s -w" ./cmd/miniooni;;
go build -o ./CLI/darwin/amd64 -ldflags="-s -w" -tags $DISABLE_QUIC ./cmd/miniooni;;
export GOOS=linux GOARCH=amd64
go build -o ./CLI/linux/amd64 -tags netgo -ldflags='-s -w -extldflags "-static"' ./cmd/miniooni;;
go build -o ./CLI/linux/amd64 -tags $DISABLE_QUIC,netgo -ldflags='-s -w -extldflags "-static"' ./cmd/miniooni;;
export GOOS=windows GOARCH=amd64
go build -o ./CLI/windows/amd64 -ldflags="-s -w" ./cmd/miniooni;;
go build -o ./CLI/windows/amd64 -tags $DISABLE_QUIC -ldflags="-s -w" ./cmd/miniooni;;
echo "usage: $0 darwin|linux|windows" 1>&2
exit 1
//+build !DISABLE_QUIC
//+build go1.15
package engine
ATTENTION: If you are compiling probe-engine with go1.15 please make sure
to pass -tags DISABLE_QUIC. Alternatively use the build script!
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment