mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 00:46:43 +00:00
add optional parallel flag to gox
This commit is contained in:
parent
02b2cb1d15
commit
5675026e23
@ -367,7 +367,8 @@ function build_consul_local {
|
|||||||
# If the XC_OS or the XC_ARCH environment vars are present then only those platforms/architectures
|
# If the XC_OS or the XC_ARCH environment vars are present then only those platforms/architectures
|
||||||
# will be built. Otherwise all supported platform/architectures are built
|
# will be built. Otherwise all supported platform/architectures are built
|
||||||
# The NOGOX environment variable will be used if present. This will prevent using gox and instead
|
# The NOGOX environment variable will be used if present. This will prevent using gox and instead
|
||||||
# build with go install
|
# build with go install.
|
||||||
|
# The GOXPARALLEL environment variable is used if set
|
||||||
|
|
||||||
if ! test -d "$1"
|
if ! test -d "$1"
|
||||||
then
|
then
|
||||||
@ -427,6 +428,7 @@ function build_consul_local {
|
|||||||
-arch="${build_arch}" \
|
-arch="${build_arch}" \
|
||||||
-osarch="!darwin/arm !darwin/arm64 !freebsd/arm" \
|
-osarch="!darwin/arm !darwin/arm64 !freebsd/arm" \
|
||||||
-ldflags="${GOLDFLAGS}" \
|
-ldflags="${GOLDFLAGS}" \
|
||||||
|
-parallel="${GOXPARALLEL:-"-1"}" \
|
||||||
-output "pkg.bin.new/${extra_dir}{{.OS}}_{{.Arch}}/consul" \
|
-output "pkg.bin.new/${extra_dir}{{.OS}}_{{.Arch}}/consul" \
|
||||||
-tags="${GOTAGS}" \
|
-tags="${GOTAGS}" \
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user