summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2024-11-12 18:31:19 +0800
committerHilton Chain <hako@ultrarare.space>2024-12-31 10:54:11 +0800
commit4489db1059309fe0c2ce49720c37aa7f2a6ab44b (patch)
treefbeb6728729046f5670a11c1e604414f2fd25b0c
parent3927e614811f3e5d7b9d56690d9921347b8ef808 (diff)
gnu: zig-0.10: Disable tests in cross builds.
* gnu/packages/zig.scm (zig-0.10)[arguments]<#:tests?>: Disable in cross builds. Change-Id: Iec886bac601487d69070f404fde3d83686b8addb
-rw-r--r--gnu/packages/zig.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 68e50a7932..1194be0cdb 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -215,12 +215,13 @@ toolchain. Among other features it provides
"zig-0.10-fix-runpath.patch"))))
(arguments
(substitute-keyword-arguments (package-arguments zig-0.9)
+ ((#:tests? _ #t)
+ (not (%current-target-system)))
((#:configure-flags flags ''())
#~(cons* "-DZIG_TARGET_MCPU=baseline"
"-DZIG_SHARED_LLVM=ON"
(string-append "-DZIG_LIB_DIR=" #$output "/lib/zig")
#$flags))
- ((#:tests? _ #t) #t)
((#:phases phases '%standard-phases)
#~(modify-phases #$phases
#$@(if (target-riscv64?)