X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-compiler.sh;h=c59baae675ad09738422e689bd9ae23d47e7e01c;hb=1540c1c1d517c58fa9a41629beb65cdce7dfafb6;hp=d1a47556eb0473194339a2cfee33a85b4955d33e;hpb=2f7e7231ad6128af80102fa2031f483e00e7a2bc;p=sbcl.git diff --git a/tests/run-compiler.sh b/tests/run-compiler.sh index d1a4755..c59baae 100644 --- a/tests/run-compiler.sh +++ b/tests/run-compiler.sh @@ -1,19 +1,19 @@ -#!/bin/sh +#!/bin/bash platform="${SBCL_SOFTWARE_TYPE}-${SBCL_MACHINE_TYPE}" -case "$platform" in - SunOS-*) CC=gcc ;; - *) CC=cc ;; -esac +if [ -z "$CC" ] +then + CC=cc +fi args= case "$platform" in Darwin-X86-64) args="-arch x86_64" ;; -esac - -case "$platform" in - Darwin-X86) args="-arch i386" ;; + Darwin-X86) args="-arch i386" ;; + SunOS-X86-64) args=-m64 ;; + Linux-X86) args="-m32" ;; + Linux-PowerPC) args="-m32" ;; esac while [ $# -gt 0 ]; do @@ -25,6 +25,7 @@ while [ $# -gt 0 ]; do FreeBSD-X86-64) new=-fPIC ;; Linux-MIPS) new=-fPIC ;; Linux-X86-64) new=-fPIC ;; + Linux-PowerPC) new=-fPIC ;; NetBSD-PowerPC) new=-fPIC ;; NetBSD-X86-64) new=-fPIC ;; OpenBSD-PowerPC) new=-fPIC ;;