summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-11-12 14:17:46 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-11-12 17:41:38 +0900
commitbadcd4a79fb2f258ea817c680eb3bbaaf6d6f74c (patch)
tree1cc647a4b042cb9c0a17cf22dd80409162de330a /gnu/packages
parent744e8f7d046a07e4559b1e66bcb4683a197873ff (diff)
downloadguix-badcd4a79fb2f258ea817c680eb3bbaaf6d6f74c.tar.gz
gnu: yosys: Do not hard-code CC and CXX make flags.
* gnu/packages/fpga.scm (yosys) [make-flags]: Use cc-for-target and
cxx-for-target procedures to compute the correct CC and CXX flags.

Change-Id: I2a81f09ff7d6891d78ad157594bb0d96c38451f8
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/fpga.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index 0a5e26f73c..8d7b0a8dd1 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -164,8 +164,8 @@ For synthesis, the compiler generates netlists in the desired format.")
     (arguments
      (list
       #:test-target "test"
-      #:make-flags #~(list "CC=gcc"
-                           "CXX=g++"
+      #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                           (string-append "CXX=" #$(cxx-for-target))
                            (string-append "PREFIX=" #$output))
       #:phases
       #~(modify-phases %standard-phases