guix_mirror_bot pushed a commit to branch master
in repository guix.

commit be3b2aae61fa39b2694b862176b3880dd020fb15
Author: Rutherther <[email protected]>
AuthorDate: Tue Sep 9 18:16:33 2025 +0200

    gnu: make-llvm: Disable tests for cross compilation.
    
    The #:tests? argument has recently been added to make-llvm,
    before the tests were enabled for native compilation and
    disabled for cross compilation per the default arguments
    in cmake-build and cmake-cross-build respectively.
    
    But since this argument has been added, it overrides the
    defaults and the test have been enabled on cross compilation,
    mistakenly. The tests cannot run when cross compiling.
    
    * gnu/packages/llvm.scm (make-llvm)[arguments]<#:tests?>:
    Disable on cross compilation.
    
    Change-Id: I5b3e33e6e9e1574eda5d1b74fe7484f157739dbb
    Signed-off-by: Efraim Flashner <[email protected]>
---
 gnu/packages/llvm.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 7292463824..d4de54f204 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -621,7 +621,8 @@ output), and Binutils.")
       (outputs '("out" "opt-viewer"))
       (arguments
        (list
-        #:tests? (not (target-x86-32?))
+        #:tests? (not (or (%current-target-system)
+                          (target-x86-32?)))
         #:configure-flags
         #~(list
            ;; These options are required for cross-compiling LLVM according

Reply via email to