guix_mirror_bot pushed a commit to branch wip-riscv-bootstrap
in repository guix.

commit 7fbe3db97b1bf5dba17483543b3fee26afa6a817
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Mon Jul 28 09:54:14 2025 +0300

    gnu: Add mpc-boot1.
    
    * gnu/packages/commencement.scm (mpc-boot1): New variable.
    
    Change-Id: I1d002867fa99a78f853c15c4b554f9ab8fa31a77
---
 gnu/packages/commencement.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index ba5359346a..75475dc495 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2581,6 +2581,34 @@ exec " gcc "/bin/" program
                (string-append "--host=" #$(commencement-build-target))
                "--enable-static"
                "--disable-shared")))))
+
+(define mpc-boot1
+  (package
+    (inherit mpc)
+    (outputs '("out"))
+    (name "mpc-boot1")
+    (source (bootstrap-origin (package-source mpc)))
+    (native-inputs (if (target-x86?)
+                       `(("gcc-wrapper" ,gcc-mesboot1-wrapper)
+                         ("headers" ,glibc-headers-mesboot)
+                         ,@(%boot-mesboot4-inputs))
+                       (%boot-tcc-musl-inputs)))
+    (inputs '())
+    (propagated-inputs (list gmp-boot1 mpfr-boot1))
+    (arguments
+     (list
+       #:guile %bootstrap-guile
+       #:tests? #f
+       #:implicit-inputs? #f
+       #:parallel-build? #f
+       #:configure-flags
+       #~(list #$@(if (target-x86?)
+                      #~()
+                      #~("CC=tcc"))
+               (string-append "--build=" #$(commencement-build-target))
+               (string-append "--host=" #$(commencement-build-target))
+               "--enable-static"
+               "--disable-shared")))))
 (define gcc-mesboot
   (package
     (inherit gcc-mesboot1)

Reply via email to