guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: utils: Add 'cxx-for-target'.


From: guix-commits
Subject: branch master updated: utils: Add 'cxx-for-target'.
Date: Mon, 16 Nov 2020 04:32:50 -0500

This is an automated email from the git hooks/post-receive script.

dannym pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b720cf9  utils: Add 'cxx-for-target'.
b720cf9 is described below

commit b720cf90e77f3143d7e46f2d9b25ada0355f13f9
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Mon Nov 16 10:26:46 2020 +0100

    utils: Add 'cxx-for-target'.
    
    * guix/utils.scm (cxx-for-target): New procedure.
---
 guix/utils.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/guix/utils.scm b/guix/utils.scm
index b816c35..a591b62 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,7 @@
             target-arm?
             target-64bit?
             cc-for-target
+            cxx-for-target
 
             version-compare
             version>?
@@ -542,6 +543,11 @@ a character other than '@'."
       (string-append target "-gcc")
       "gcc"))
 
+(define* (cxx-for-target #:optional (target (%current-target-system)))
+  (if target
+      (string-append target "-g++")
+      "g++"))
+
 (define version-compare
   (let ((strverscmp
          (let ((sym (or (dynamic-func "strverscmp" (dynamic-link))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]