X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-compiler.sh;h=dbc01f964fe3ba05c1f108ea27960b6d0eb32b97;hb=1fa1730414b6c914e502d339945d0ad7a4a7f5d9;hp=d98aab0649e40fd3c1d967aab5b941716561ac5a;hpb=6b5e285152dc031327e66e5405bc449b92560ec8;p=sbcl.git diff --git a/tests/run-compiler.sh b/tests/run-compiler.sh old mode 100644 new mode 100755 index d98aab0..dbc01f9 --- a/tests/run-compiler.sh +++ b/tests/run-compiler.sh @@ -1,20 +1,19 @@ -#!/bin/sh +#!/bin/bash platform="${SBCL_SOFTWARE_TYPE}-${SBCL_MACHINE_TYPE}" if [ -z "$CC" ] then - CC=cc + CC=gcc fi args= case "$platform" in Darwin-X86-64) args="-arch x86_64" ;; + Darwin-X86) args="-arch i386" ;; SunOS-X86-64) args=-m64 ;; -esac - -case "$platform" in - Darwin-X86) args="-arch i386" ;; + Linux-X86) args="-m32" ;; + Linux-PowerPC) args="-m32" ;; esac while [ $# -gt 0 ]; do @@ -26,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 ;;