add --arch option to make.sh
authorNikodemus Siivola <nikodemus@random-state.net>
Wed, 30 Nov 2011 16:55:04 +0000 (18:55 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 08:22:09 +0000 (10:22 +0200)
  Not for full-blown cross compilation, though.

NEWS
make-config.sh

diff --git a/NEWS b/NEWS
index 63ddfec..3f0c6ae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
 ;;;; -*- coding: utf-8; fill-column: 78 -*-
+changes relative to sbcl-1.0.54:
+  * enhancements to building SBCL:
+    ** --arch option can be used to specify the architecture to build for.
+       (Mainly useful for building 32-bit SBCL's on x86-64 hosts, not
+       full-blows cross-compilation.)
+
 changes in sbcl-1.0.54 relative to sbcl-1.0.53:
   * minor incompatible changes:
     ** RENAME-FILE on a symbolic links used to rename the linked-to file
index 157eea0..472cd3a 100644 (file)
@@ -65,6 +65,9 @@ do
       --prefix=)
         $optarg_ok && SBCL_PREFIX=$optarg
         ;;
+      --arch=)
+        $oparg_ok && SBCL_ARCH=$optarg
+        ;;
       --xc-host=)
         $optarg_ok && SBCL_XC_HOST=$optarg
         ;;
@@ -128,6 +131,10 @@ Options:
       taken to be megabytes unless explicitly suffixed with Gb in
       order to specify the size in gigabytes.
 
+  --arch=<string>      Specify the architecture to build for.
+
+      Mainly for doing x86 builds on x86-64.
+
   --xc-host=<string>   Specify the Common Lisp compilation host.
 
       The string provided should be a command to invoke the
@@ -318,7 +325,7 @@ echo //setting up CPU-architecture-dependent information
 sbcl_arch=${SBCL_ARCH:-$guessed_sbcl_arch}
 echo sbcl_arch=\"$sbcl_arch\"
 if [ "$sbcl_arch" = "" ] ; then
-    echo "can't guess target SBCL architecture, need SBCL_ARCH environment var"
+    echo "can't guess target SBCL architecture, please specify --arch=<name>"
     exit 1
 fi
 printf ":%s" "$sbcl_arch" >> $ltf