diff options
Diffstat (limited to 'guix/utils.scm')
-rw-r--r-- | guix/utils.scm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/guix/utils.scm b/guix/utils.scm index c5a3a52f9d..3f253d6cd8 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015 David Thompson <davet@gnu.org> ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2018, 2020 Marius Bakke <marius@gnu.org> -;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2020, 2021 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> @@ -94,6 +94,8 @@ target-arm32? target-aarch64? target-arm? + target-ppc32? + target-ppc64le? target-powerpc? target-64bit? cc-for-target @@ -690,6 +692,14 @@ architecture (x86_64)?" (%current-system)))) (or (target-arm32? target) (target-aarch64? target))) +(define* (target-ppc32? #:optional (target (or (%current-target-system) + (%current-system)))) + (string-prefix? "powerpc-" target)) + +(define* (target-ppc64le? #:optional (target (or (%current-target-system) + (%current-system)))) + (string-prefix? "powerpc64le-" target)) + (define* (target-powerpc? #:optional (target (or (%current-target-system) (%current-system)))) (string-prefix? "powerpc" target)) @@ -1090,7 +1100,6 @@ bound by MAX-COLUMN-WIDTH." (map (cut min <> max-column-width) column-widths))) (fmt (string-append (string-join column-formats "\t") "\t~a"))) - (setvbuf (current-output-port) 'block) ;for better performance (for-each (cut format #t "~?~%" fmt <>) rows))) ;;; Local Variables: |