diff options
author | Philip McGrath <philip@philipmcgrath.com> | 2023-02-03 20:14:12 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-02-11 00:09:40 +0100 |
commit | a89aa4523befd8c30d9f13800b4833abbc911ba1 (patch) | |
tree | fd1f0c52d1450e08678fbb975806a2bbb51b31e3 /guix/build-system | |
parent | fb2bf136f0e27b2b6fd48fb3bb38c121f81af7f9 (diff) | |
download | guix-patches-a89aa4523befd8c30d9f13800b4833abbc911ba1.tar guix-patches-a89aa4523befd8c30d9f13800b4833abbc911ba1.tar.gz |
utils: Add target-little-endian?.
* guix/utils.scm (target-little-endian?): New function.
* guix/build-system/meson.scm (make-machine-alist): Use it.
* gnu/packages/chez.scm (nix-system->pbarch-machine-type): Likewise.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/build-system')
-rw-r--r-- | guix/build-system/meson.scm | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/guix/build-system/meson.scm b/guix/build-system/meson.scm index b0bf8cb6e6..7d413a991d 100644 --- a/guix/build-system/meson.scm +++ b/guix/build-system/meson.scm @@ -74,16 +74,9 @@ for TRIPLET." ;; for selecting optimisations, so set it to something ;; arbitrary. (#t "strawberries"))) - (endian . ,(cond ((string-prefix? "powerpc64le-" triplet) "little") - ((string-prefix? "mips64el-" triplet) "little") - ((target-x86-32? triplet) "little") - ((target-x86-64? triplet) "little") - ;; At least in Guix. Aarch64 and 32-bit arm - ;; have a big-endian mode as well. - ((target-arm? triplet) "little") - ((target-ppc32? triplet) "big") - ((target-riscv64? triplet) "little") - (#t (error "meson: unknown architecture")))))) + (endian . ,(if (target-little-endian? triplet) + "little" + "big")))) (define (make-binaries-alist triplet) "Make an associatoin list describing what should go into |