scripts: Use XC_ARCH/XC_OS to limit what arch/os combo is built
This commit is contained in:
parent
56402f9432
commit
b9f0b81821
|
@ -21,11 +21,18 @@ fi
|
|||
|
||||
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...
|
||||
xc() {
|
||||
goxc \
|
||||
-arch="386 amd64 arm" \
|
||||
-os="linux darwin windows freebsd openbsd" \
|
||||
-arch="$XC_ARCH" \
|
||||
-os="$XC_OS" \
|
||||
-d="${DIR}/pkg" \
|
||||
-pv="${VERSION}" \
|
||||
-pr="${PREVERSION}" \
|
||||
|
|
Loading…
Reference in New Issue