From badcd4a79fb2f258ea817c680eb3bbaaf6d6f74c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 12 Nov 2024 14:17:46 +0900 Subject: 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(-) (limited to 'gnu/packages/fpga.scm') 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 -- cgit v1.2.3