1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +02:00

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
This commit is contained in:
Christopher Baines 2025-03-25 18:20:53 +00:00
parent 744cf07005
commit 0807035449
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -271,6 +271,8 @@ commit hash and its date rather than a proper release tag."
(tests? #f) ; nothing can be done (tests? #f) ; nothing can be done
(test-flags ''()) (test-flags ''())
(test-subdirs ''("...")) (test-subdirs ''("..."))
(parallel-build? #t)
(parallel-tests? #t)
(allow-go-reference? #f) (allow-go-reference? #f)
(system (%current-system)) (system (%current-system))
(goarch (first (go-target target))) (goarch (first (go-target target)))
@ -325,6 +327,8 @@ commit hash and its date rather than a proper release tag."
#:tests? #$tests? #:tests? #$tests?
#:test-flags #$test-flags #:test-flags #$test-flags
#:test-subdirs #$test-subdirs #:test-subdirs #$test-subdirs
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:make-dynamic-linker-cache? #f ;cross-compiling #:make-dynamic-linker-cache? #f ;cross-compiling
#:allow-go-reference? #$allow-go-reference? #:allow-go-reference? #$allow-go-reference?
#:inputs %build-inputs)))) #:inputs %build-inputs))))