mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 18:40:57 +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:
parent
744cf07005
commit
0807035449
1 changed files with 4 additions and 0 deletions
|
@ -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))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue