Index: server/buildpkgs/common.sh ================================================================== --- server/buildpkgs/common.sh +++ server/buildpkgs/common.sh @@ -63,10 +63,24 @@ rm -rf out exit 0 } + +function not_platforms_regexp () { + local platform_re + + for platform_re in "$@"; do + if echo "${PLATFORM}" | grep -- "${platform_re}" >/dev/null; then + rm -rf out + + exit 0 + fi + done + + return 0 +} function download () { local url file file="$1" Index: server/buildpkgs/tcc4tcl/build.sh ================================================================== --- server/buildpkgs/tcc4tcl/build.sh +++ server/buildpkgs/tcc4tcl/build.sh @@ -12,10 +12,13 @@ source ../common.sh # Do not build if the "tcl" platform has been requested not_platforms 'tcl' +# Do not support multiarch builds +not_platforms_regexp '^macosx.*i386-x86_64' '^macosx.*x86_64-i386' + # Requires Tcl 8.5 or newer setup_tcl 8.5 8.6 || exit 1 # Download source download_src