mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 23:52:24 +02:00
Fix handling of the *-gnux32 target.
* module/system/base/target.scm (triplet-pointer-size): Fix typo in the x32 triplet name. * test-suite/tests/asm-to-bytecode.test (native-os): New procedure. (test-target): Use (native-word-size) only when both the CPU and OS match.
This commit is contained in:
parent
a5d8f98c60
commit
aacc689677
2 changed files with 6 additions and 2 deletions
|
@ -132,6 +132,9 @@
|
|||
(define (native-cpu)
|
||||
(with-target %host-type target-cpu))
|
||||
|
||||
(define (native-os)
|
||||
(with-target %host-type target-os))
|
||||
|
||||
(define (native-word-size)
|
||||
((@ (system foreign) sizeof) '*))
|
||||
|
||||
|
@ -152,7 +155,8 @@
|
|||
;; actually has a 32-bit user-land, for instance (see
|
||||
;; <http://www.debian.org/ports/sparc/#sparc64bit>
|
||||
;; for details.)
|
||||
(if (string=? (native-cpu) (target-cpu))
|
||||
(if (and (string=? (native-cpu) (target-cpu))
|
||||
(string=? (native-os) (target-os)))
|
||||
(native-word-size)
|
||||
word-size))
|
||||
(b (compile-bytecode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue