From be3b2aae61fa39b2694b862176b3880dd020fb15 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 9 Sep 2025 18:16:33 +0200 Subject: [PATCH] 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 --- 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 72924638241aaad717fa4bb70324cd092b393284..d4de54f204c80425d0df10966027e8894a459c02 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