Don't coerce (= single-float 1d0) to double-float.
[sbcl.git] / tests / run-compiler.sh
blobd157f62062616b6b947d6214ce1fb7e2e24c7a9c
1 #!/bin/sh
3 platform="${SBCL_SOFTWARE_TYPE}-${SBCL_MACHINE_TYPE}"
5 if [ -z "$CC" ]; then
6 if [ -x "`command -v cc`" ]; then
7 CC=cc
8 else
9 CC=gcc
13 args=
14 case "$platform" in
15 Darwin-X86-64) args="-arch x86_64" ;;
16 Darwin-X86) args="-arch i386" ;;
17 Darwin-PowerPC) args="-arch ppc" ;;
18 SunOS-X86-64) args=-m64 ;;
19 Linux-X86) args="-m32" ;;
20 Linux-PowerPC) args="-m32" ;;
21 FreeBSD-X86) args="-m32" ;;
22 esac
24 while [ $# -gt 0 ]; do
25 arg="$1"
26 new=
27 case "$arg" in
28 -sbcl-pic)
29 new=-fPIC
32 -sbcl-shared)
33 case "$platform" in
34 Darwin-*) new=-bundle ;;
35 *) new=-shared ;;
36 esac
40 break
42 esac
44 shift
45 if [ x"$new" != x ]; then
46 args="$args $new"
48 done
50 echo "/ $CC $args $@"
51 "$CC" $args "$@"