1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 18:40:57 +02:00

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 @@ For synthesis, the compiler generates netlists in the desired format.")
(arguments (arguments
(list (list
#:test-target "test" #:test-target "test"
#:make-flags #~(list "CC=gcc" #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
"CXX=g++" (string-append "CXX=" #$(cxx-for-target))
(string-append "PREFIX=" #$output)) (string-append "PREFIX=" #$output))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases