1.0.6.37: thread safety test for the CLOS cache
[sbcl.git] / tests / foreign-stack-alignment.impure.lisp
index 5e9a7c7..3900f60 100644 (file)
@@ -35,7 +35,8 @@
   #+(and ppc linux) 8
   #+x86-64 16
   #+mips 8
-  #+x86 4
+  #+(and x86 (not darwin)) 4
+  #+(and x86 darwin) 16
   #-(or x86 x86-64 mips (and ppc (or darwin linux))) (error "Unknown platform"))
 
 ;;;; Build the offset-tool as regular excutable, and run it with
@@ -44,6 +45,7 @@
 
 (run "cc"
      #+(and (or linux freebsd) (or x86-64 ppc)) "-fPIC"
+     #+(and x86-64 darwin) "-arch" #+(and x86-64 darwin) "x86_64"
      "stack-alignment-offset.c" "-o" "stack-alignment-offset")
 
 (defparameter *good-offset*
@@ -54,6 +56,7 @@
 
 (run "cc" "stack-alignment-offset.c"
      #+(and (or linux freebsd) (or x86-64 ppc)) "-fPIC"
+     #+(and x86-64 darwin) "-arch" #+(and x86-64 darwin) "x86_64"
      #+darwin "-bundle" #-darwin "-shared"
      "-o" "stack-alignment-offset.so")