build/zig: Output verbosely.

* guix/build/zig-build-system.scm (build,check): Add "--verbose" flag.

Change-Id: I3339496156f9a194cbe928ae4b5a01eb65cbdf08
This commit is contained in:
Hilton Chain 2024-12-31 09:14:17 +08:00
parent bdff1941e5
commit f31b9df0f8
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -152,6 +152,7 @@ (define* (build #:key
"--prefix-lib-dir" "lib"
"--prefix-exe-dir" "bin"
"--prefix-include-dir" "include"
"--verbose"
,(string-append "-Dtarget=" (zig-target zig-build-target))
,@(if parallel-build?
((assoc-ref arguments "parallel-jobs")
@ -176,7 +177,7 @@ (define* (check #:key tests?
(let ((old-destdir (getenv "DESTDIR")))
(setenv "DESTDIR" "test-out") ;; Avoid colisions with the build output
(let* ((arguments (zig-arguments))
(call `("zig" "build" "test"
(call `("zig" "build" "test" "--verbose"
,@(if parallel-tests?
((assoc-ref arguments "parallel-jobs")
(parallel-job-count))