guix_mirror_bot pushed a commit to branch rust-team
in repository guix.

commit 361446fe4633ef71353dc052b9fd42d6a1ed9e62
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Oct 28 14:21:25 2026 +0200

    gnu: mozjs-128: Fix build with newer rust.
    
    * gnu/packages/gnuzilla.scm (mozjs-128)[arguments]: Add a configure-flag
    to help determine the host architecture.
---
 gnu/packages/gnuzilla.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 8db532e0531..508b0ff8fb7 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -2099,7 +2099,12 @@ in C/C++.")
     (arguments
      (substitute-keyword-arguments arguments
        ((#:configure-flags flags)
-        #~(delete "--enable-rust-simd" #$flags))
+        #~(cons
+            ;; x86_64-linux-gnu gets converted to x86_64-pc-linux-gnu instead 
of
+            ;; x86_64-unknown-linux-gnu so we give the configure script a hint.
+            #$(string-append "--host=" (nix-system->gnu-triplet
+                                         (%current-system)))
+            (delete "--enable-rust-simd" #$flags)))
        ((#:phases phases)
         #~(modify-phases #$phases
           (replace 'adjust-tests

Reply via email to