1.0.4.60: More efficient structure raw slot accessors on x86-64
[sbcl.git] / tests / foreign-stack-alignment.impure.lisp
index 9ed1a02..0cd42cc 100644 (file)
@@ -32,9 +32,9 @@
 
 (defvar *required-alignment*
   #+(and ppc darwin) 16
-  #+(and ppc linux) 16
+  #+(and ppc linux) 8
   #+x86-64 16
-  #+(or mips) 8
+  #+mips 8
   #+x86 4
   #-(or x86 x86-64 mips (and ppc (or darwin linux))) (error "Unknown platform"))
 
@@ -43,7 +43,8 @@
 ;;;; number.
 
 (run "cc"
-     #+x86-64 "-fPIC"
+     #+(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*
@@ -53,7 +54,8 @@
 ;;;; Build the tool again, this time as a shared object, and load it
 
 (run "cc" "stack-alignment-offset.c"
-     #+x86-64 "-fPIC"
+     #+(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")