scripts: Use XC_ARCH/XC_OS to limit what arch/os combo is built
This commit is contained in:
parent
3f5293785f
commit
badd5df3cd
|
@ -21,11 +21,18 @@ fi
|
||||||
|
|
||||||
echo "Version: ${VERSION} ${PREVERSION}"
|
echo "Version: ${VERSION} ${PREVERSION}"
|
||||||
|
|
||||||
|
# Determine the arch/os combos we're building for
|
||||||
|
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
||||||
|
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd}
|
||||||
|
|
||||||
|
echo "Arch: ${XC_ARCH}"
|
||||||
|
echo "OS: ${XC_OS}"
|
||||||
|
|
||||||
# This function builds whatever directory we're in...
|
# This function builds whatever directory we're in...
|
||||||
xc() {
|
xc() {
|
||||||
goxc \
|
goxc \
|
||||||
-arch="386 amd64 arm" \
|
-arch="$XC_ARCH" \
|
||||||
-os="linux darwin windows freebsd openbsd" \
|
-os="$XC_OS" \
|
||||||
-d="${DIR}/pkg" \
|
-d="${DIR}/pkg" \
|
||||||
-pv="${VERSION}" \
|
-pv="${VERSION}" \
|
||||||
-pr="${PREVERSION}" \
|
-pr="${PREVERSION}" \
|
||||||
|
|
Loading…
Reference in New Issue