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
This commit is contained in:
Maxim Cournoyer 2024-11-12 14:17:46 +09:00
parent 744e8f7d04
commit badcd4a79f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -164,8 +164,8 @@ (define-public yosys
(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