mirror of
https://github.com/moby/moby.git
synced 2026-06-30 19:58:03 +00:00
Add DOCKER_BUILD_GOGC to tweak GOGC for compile
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
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