diff options
author | Chris Marusich <cmmarusich@gmail.com> | 2021-02-02 00:00:57 -0800 |
---|---|---|
committer | Chris Marusich <cmmarusich@gmail.com> | 2021-03-10 23:01:58 -0800 |
commit | 4bd672cb41f71a309566dde9397dab90a4389ab7 (patch) | |
tree | f8cf03f60a2bc4a3e9402e72f728f73b4c03d6ff | |
parent | 680b20f24c563a67c7fdf2291a3d2ac44749fe47 (diff) | |
download | guix-4bd672cb41f71a309566dde9397dab90a4389ab7.tar.gz |
utils: Add target-powerpc? procedure.
* guix/utils.scm (target-powerpc?): New exported procedure.
-rw-r--r-- | guix/utils.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm index 96cd8c791e..e7a7be4974 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> +;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -83,6 +84,7 @@ target-arm32? target-aarch64? target-arm? + target-powerpc? target-64bit? cc-for-target cxx-for-target @@ -555,6 +557,10 @@ a character other than '@'." (%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"))) |