~ruther/guix-local

08070354496d9510273e8a2bfd2324fd3f3ef55c — Christopher Baines 1 year, 4 months ago 744cf07
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
1 files changed, 4 insertions(+), 0 deletions(-)

M guix/build-system/go.scm
M guix/build-system/go.scm => guix/build-system/go.scm +4 -0
@@ 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))))