projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.28.74: SHARED-INITIALIZE should initialize unbound :CLASS slots
[sbcl.git]
/
tests
/
foreign-stack-alignment.impure.lisp
diff --git
a/tests/foreign-stack-alignment.impure.lisp
b/tests/foreign-stack-alignment.impure.lisp
index
5e9a7c7
..
4bc683c
100644
(file)
--- a/
tests/foreign-stack-alignment.impure.lisp
+++ b/
tests/foreign-stack-alignment.impure.lisp
@@
-35,7
+35,8
@@
#+(and ppc linux) 8
#+x86-64 16
#+mips 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
#-(or x86 x86-64 mips (and ppc (or darwin linux))) (error "Unknown platform"))
;;;; Build the offset-tool as regular excutable, and run it with
@@
-43,7
+44,8
@@
;;;; number.
(run "cc"
;;;; number.
(run "cc"
- #+(and (or linux freebsd) (or x86-64 ppc)) "-fPIC"
+ #+(and (or linux freebsd) (or x86-64 ppc mips)) "-fPIC"
+ #+(and x86-64 darwin) "-arch" #+(and x86-64 darwin) "x86_64"
"stack-alignment-offset.c" "-o" "stack-alignment-offset")
(defparameter *good-offset*
"stack-alignment-offset.c" "-o" "stack-alignment-offset")
(defparameter *good-offset*
@@
-53,11
+55,12
@@
;;;; Build the tool again, this time as a shared object, and load it
(run "cc" "stack-alignment-offset.c"
;;;; Build the tool again, this time as a shared object, and load it
(run "cc" "stack-alignment-offset.c"
- #+(and (or linux freebsd) (or x86-64 ppc)) "-fPIC"
+ #+(and (not darwin) (or x86-64 ppc mips)) "-fPIC"
+ #+(and x86-64 darwin) "-arch" #+(and x86-64 darwin) "x86_64"
#+darwin "-bundle" #-darwin "-shared"
"-o" "stack-alignment-offset.so")
#+darwin "-bundle" #-darwin "-shared"
"-o" "stack-alignment-offset.so")
-(load-shared-object "stack-alignment-offset.so")
+(load-shared-object (truename "stack-alignment-offset.so"))
(define-alien-routine stack-alignment-offset int (alignment int))
(define-alien-routine trampoline int (callback (function int)))
(define-alien-routine stack-alignment-offset int (alignment int))
(define-alien-routine trampoline int (callback (function int)))
@@
-72,4
+75,7
@@
(assert (= *good-offset* (trampoline (alien-lambda int ()
(stack-alignment-offset *required-alignment*))))))
(assert (= *good-offset* (trampoline (alien-lambda int ()
(stack-alignment-offset *required-alignment*))))))
+(delete-file "stack-alignment-offset")
+(delete-file "stack-alignment-offset.so")
+
;;;; success!
;;;; success!