[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/13: utils: Add 'cc-for-target'.
From: |
guix-commits |
Subject: |
12/13: utils: Add 'cc-for-target'. |
Date: |
Fri, 29 May 2020 09:42:29 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit fb9a57a8e6a28093f5138a6c484442f8b3a8cd7e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu May 28 18:53:13 2020 +0200
utils: Add 'cc-for-target'.
* guix/utils.scm (cc-for-target): New procedure.
---
guix/utils.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/guix/utils.scm b/guix/utils.scm
index d7b197f..69e3f0a 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2018, 2020 Marius Bakke <marius@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -78,6 +78,8 @@
target-aarch64?
target-arm?
target-64bit?
+ cc-for-target
+
version-compare
version>?
version>=?
@@ -506,6 +508,11 @@ a character other than '@'."
(%current-system))))
(any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" "ppc64")))
+(define* (cc-for-target #:optional (target (%current-target-system)))
+ (if target
+ (string-append target "-gcc")
+ "gcc"))
+
(define version-compare
(let ((strverscmp
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
- 01/13: gnu: love: Remove unused input., (continued)
- 01/13: gnu: love: Remove unused input., guix-commits, 2020/05/29
- 02/13: gnu: physfs: Do not build the static library., guix-commits, 2020/05/29
- 04/13: gnu: ruby-ffi: Update to 1.12.2., guix-commits, 2020/05/29
- 03/13: gnu: ruby-spec-its: Accept any version of ruby-ffi., guix-commits, 2020/05/29
- 07/13: gnu: ruby-libffi: Enable tests and unbundle LibFFI., guix-commits, 2020/05/29
- 06/13: gnu: ruby-rubygems-tasks: Update to 0.2.5., guix-commits, 2020/05/29
- 08/13: gnu: ruby-crass: Update to 1.0.6., guix-commits, 2020/05/29
- 09/13: gnu: ruby-nokogiri: Update to 1.10.9., guix-commits, 2020/05/29
- 10/13: gnu: ruby-nokogumbo: Update to 2.0.2., guix-commits, 2020/05/29
- 11/13: gnu: ruby-sanitize: Update to 5.1.0., guix-commits, 2020/05/29
- 12/13: utils: Add 'cc-for-target'.,
guix-commits <=
- 05/13: gnu: ruby-rake-compiler: Update to 1.1.0., guix-commits, 2020/05/29
- 13/13: gnu: Use 'cc-for-target' instead of custom implementations., guix-commits, 2020/05/29