HCoop
/
jackhill
/
guix
/
guix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd104b
)
utils: Add 'cxx-for-target'.
author
Danny Milosavljevic
<dannym@scratchpost.org>
Mon, 16 Nov 2020 09:26:46 +0000
(10:26 +0100)
committer
Danny Milosavljevic
<dannym@scratchpost.org>
Mon, 16 Nov 2020 09:26:46 +0000
(10:26 +0100)
* guix/utils.scm (cxx-for-target): New procedure.
guix/utils.scm
patch
|
blob
|
blame
|
history
diff --git
a/guix/utils.scm
b/guix/utils.scm
index
b816c35
..
a591b62
100644
(file)
--- 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))