X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-compiler.sh;h=dbc01f964fe3ba05c1f108ea27960b6d0eb32b97;hb=7ff2233608f1f110e112ae576fa829618ce181ae;hp=d1a47556eb0473194339a2cfee33a85b4955d33e;hpb=2f7e7231ad6128af80102fa2031f483e00e7a2bc;p=sbcl.git diff --git a/tests/run-compiler.sh b/tests/run-compiler.sh old mode 100644 new mode 100755 index d1a4755..dbc01f9 --- 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=gcc +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 ;;