This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 0908abf25c gnu: iverilog: Enable cross compile.
0908abf25c is described below
commit 0908abf25c79371bf9f5bd809cdfd0b078ac2aa0
Author: Cayetano Santos <[email protected]>
AuthorDate: Sat Jan 17 11:02:34 2026 +0100
gnu: iverilog: Enable cross compile.
* gnu/packages/electronics.scm (iverilog)[arguments]: Add #:make-flags
and remove ’ensure-native-baked-CC/CXX #:phase.
Merges guix/guix!5696
Change-Id: I53cbdc77a426403dcd965a4e51b04e34fdd590d2
---
gnu/packages/electronics.scm | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index 7fc49aa8bd..9185d51c87 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -633,18 +633,10 @@ Simulator Trace} files.")
(arguments
(list
#:bootstrap-scripts #~(list "autoconf.sh")
- #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'ensure-native-baked-CC/CXX
- (lambda _
- ;; The compilers used to build are retained in
- ;; bin/iverilog-vpi, which is a Makefile
- ;; script. Normalize these to just 'gcc' and 'g++' to
- ;; avoid having these set to cross compilers.
- (substitute* "Makefile.in"
- (("s;@IVCC@;\\$\\(CC);")
- "s;@IVCC@;gcc;")
- (("s;@IVCXX@;\\$\\(CXX);")
- "s;@IVCXX@;g++;")))))))
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "CXX=" #$(cxx-for-target))
+ (string-append "PREFIX=" #$output))))
(native-inputs (list autoconf bison flex gperf))
(inputs (list zlib))
(home-page "https://steveicarus.github.io/iverilog/")