diff --git a/Makefile b/Makefile index 9c8913ea..b40b4cd0 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ CHANNEL = development CLIENT_DIR = client COMMIT = $$( git rev-parse --short HEAD ) DIST_DIR = dist +GOAMD64 = v1 GOPROXY = https://goproxy.cn|https://proxy.golang.org|direct GOSUMDB = sum.golang.google.cn GPG_KEY = devteam@adguard.com @@ -61,6 +62,7 @@ ENV = env\ GPG_KEY_PASSPHRASE='$(GPG_KEY_PASSPHRASE)'\ DIST_DIR='$(DIST_DIR)'\ GO="$(GO.MACRO)"\ + GOAMD64="$(GOAMD64)"\ GOPROXY='$(GOPROXY)'\ GOSUMDB='$(GOSUMDB)'\ PATH="$${PWD}/bin:$$( "$(GO.MACRO)" env GOPATH )/bin:$${PATH}"\ diff --git a/scripts/README.md b/scripts/README.md index 5ce27e80..b567cbd4 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -120,6 +120,9 @@ Optional environment: Optional environment: + * `GOAMD64`: architectural level for [AMD64][amd64]. The default value is + `v1`. + * `GOARM`: ARM processor options for the Go compiler. * `GOMIPS`: ARM processor options for the Go compiler. @@ -146,7 +149,8 @@ Required environment: * `CHANNEL`: release channel, see above. -[repr]: https://reproducible-builds.org/docs/source-date-epoch/ +[amd64]: https://github.com/golang/go/wiki/MinimumRequirements#amd64 +[repr]: https://reproducible-builds.org/docs/source-date-epoch/