X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=make-config.sh;h=6075913435d37c013d95b623c7ce2f3d73c82c24;hb=1f03c7f326823245708a84af86b31ac72bdb1742;hp=e3da7bc9bacfce4d1d4727a50798b2bac7e6ee20;hpb=2230ea0c1765a95fd2aa0a8996b3555b93ba3745;p=sbcl.git diff --git a/make-config.sh b/make-config.sh index e3da7bc..6075913 100644 --- a/make-config.sh +++ b/make-config.sh @@ -128,6 +128,11 @@ if [ "$sbcl_os" = "sunos" ] && [ `isainfo -k` = "amd64" ]; then guessed_sbcl_arch=x86-64 fi +# Under Darwin, uname -m returns "i386" even if CPU is x86_64. +if [ "$sbcl_os" = "darwin" ] && [ "`sysctl -n hw.optional.x86_64`" = "1" ]; then + guessed_sbcl_arch=x86-64 +fi + echo //setting up CPU-architecture-dependent information sbcl_arch=${SBCL_ARCH:-$guessed_sbcl_arch} echo sbcl_arch=\"$sbcl_arch\" @@ -155,9 +160,12 @@ case "$sbcl_os" in # If you add other platforms here, don't forget to edit # src/runtime/Config.foo-linux too. case "$sbcl_arch" in - x86 | mips) - printf ' :largefile' >> $ltf - ;; + mips) + printf ' :largefile' >> $ltf + ;; + x86 | x86-64) + printf ' :sb-thread :largefile' >> $ltf + ;; esac if [ $sbcl_arch = "x86-64" ]; then