diff options
Diffstat (limited to 'guix/utils.scm')
-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 ba896623f4..0674ec61b8 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -83,6 +83,7 @@ target-arm? target-64bit? cc-for-target + cxx-for-target version-compare version>? @@ -547,6 +548,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)) |