mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
utils: Add target-powerpc? procedure.
* guix/utils.scm (target-powerpc?): New exported procedure.
This commit is contained in:
parent
8a1118a96c
commit
fc7cf0c1ec
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
;;; Copyright © 2018, 2020 Marius Bakke <marius@gnu.org>
|
||||
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -79,6 +80,7 @@ (define-module (guix utils)
|
|||
target-arm32?
|
||||
target-aarch64?
|
||||
target-arm?
|
||||
target-powerpc?
|
||||
target-64bit?
|
||||
cc-for-target
|
||||
cxx-for-target
|
||||
|
@ -541,6 +543,10 @@ (define* (target-arm? #:optional (target (or (%current-target-system)
|
|||
(%current-system))))
|
||||
(or (target-arm32? target) (target-aarch64? target)))
|
||||
|
||||
(define* (target-powerpc? #:optional (target (or (%current-target-system)
|
||||
(%current-system))))
|
||||
(string-prefix? "powerpc" target))
|
||||
|
||||
(define* (target-64bit? #:optional (system (or (%current-target-system)
|
||||
(%current-system))))
|
||||
(any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" "ppc64")))
|
||||
|
|
Loading…
Reference in a new issue