From 08070354496d9510273e8a2bfd2324fd3f3ef55c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 25 Mar 2025 18:20:53 +0000 Subject: [PATCH] build-system: go: Support parallel options for cross builds. Since these options were added for normal builds, those packages that used these options couldn't be cross built. Supporting these options in go-cross-build restores this functionality. * guix/build-system/go.scm (go-cross-build): Support the #:parallel-build? and #:parallel-tests? keyword arguments. Change-Id: I9768c9562246b61c2ea875a3d5a42809924f3a7d --- guix/build-system/go.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 863177c59e..8e03efa2eb 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -271,6 +271,8 @@ commit hash and its date rather than a proper release tag." (tests? #f) ; nothing can be done (test-flags ''()) (test-subdirs ''("...")) + (parallel-build? #t) + (parallel-tests? #t) (allow-go-reference? #f) (system (%current-system)) (goarch (first (go-target target))) @@ -325,6 +327,8 @@ commit hash and its date rather than a proper release tag." #:tests? #$tests? #:test-flags #$test-flags #:test-subdirs #$test-subdirs + #:parallel-build? #$parallel-build? + #:parallel-tests? #$parallel-tests? #:make-dynamic-linker-cache? #f ;cross-compiling #:allow-go-reference? #$allow-go-reference? #:inputs %build-inputs))))