apteryx pushed a commit to branch master
in repository guix.
commit badcd4a79fb2f258ea817c680eb3bbaaf6d6f74c
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Tue Nov 12 14:17:46 2024 +0900
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
---
gnu/packages/fpga.scm | 4 ++--
1 file 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