mirror of
https://github.com/docker/cli.git
synced 2026-09-24 15:30:10 -05:00
Merge pull request #19747 from cpuguy83/nogc
Turn off GC during `make binary` Upstream-commit: 07312af8fa160c1c87558288e1de9d309b1e9c90 Component: engine
This commit is contained in:
@@ -8,6 +8,8 @@ BINARY_FULLNAME="$BINARY_NAME$BINARY_EXTENSION"
|
||||
source "${MAKEDIR}/.go-autogen"
|
||||
|
||||
(
|
||||
export GOGC=${DOCKER_BUILD_GOGC:-1000}
|
||||
|
||||
if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" ]; then
|
||||
# must be cross-compiling!
|
||||
case "$(go env GOOS)/$(go env GOARCH)" in
|
||||
|
||||
Reference in New Issue
Block a user