mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Drop quic free build
Since go1.21, Go standard library have added support for QUIC protocol. The binary size gains between quic and quic-free version is now minimal. Removing the quic free build, simplify the code and build process.
This commit is contained in:
committed by
Cuong Manh Le
parent
3d834f00f6
commit
edca1f4f89
@@ -74,15 +74,6 @@ build() {
|
||||
fi
|
||||
GOOS=${goos} GOARCH=${goarch} GOARM=${3} "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
||||
compress "$binary"
|
||||
|
||||
if [ -z "${CTRLD_NO_QF}" ]; then
|
||||
binary_qf=${executable_name}-qf-${goos}-${goarch}v${3}
|
||||
if [ "$CGO_ENABLED" = "0" ]; then
|
||||
binary_qf=${binary_qf}-nocgo
|
||||
fi
|
||||
GOOS=${goos} GOARCH=${goarch} GOARM=${3} "$go" build -ldflags="$ldflags" -tags=qf -o "$binary_qf" ./cmd/ctrld
|
||||
compress "$binary_qf"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# GOMIPS is required for linux/mips: https://nileshgr.com/2020/02/16/golang-on-openwrt-mips/
|
||||
@@ -92,15 +83,6 @@ build() {
|
||||
fi
|
||||
GOOS=${goos} GOARCH=${goarch} GOMIPS=softfloat "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
||||
compress "$binary"
|
||||
|
||||
if [ -z "${CTRLD_NO_QF}" ]; then
|
||||
binary_qf=${executable_name}-qf-${goos}-${goarch}
|
||||
if [ "$CGO_ENABLED" = "0" ]; then
|
||||
binary_qf=${binary_qf}-nocgo
|
||||
fi
|
||||
GOOS=${goos} GOARCH=${goarch} GOMIPS=softfloat "$go" build -ldflags="$ldflags" -tags=qf -o "$binary_qf" ./cmd/ctrld
|
||||
compress "$binary_qf"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user