[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/15: gnu: go-1.16: Honor #:parallel-build?
From: |
guix-commits |
Subject: |
15/15: gnu: go-1.16: Honor #:parallel-build? |
Date: |
Thu, 5 Aug 2021 10:03:11 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit ead6cc03c66ed31f0ab7300fab11cef3a1e459f0
Author: Sarah Morgensen <iskarian@mgsn.dev>
AuthorDate: Sat Jul 17 21:05:59 2021 -0700
gnu: go-1.16: Honor #:parallel-build?
* gnu/packages/golang.scm (go-1.16)[arguments]<#:phases>{build}: Honor
parallel-build?
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/golang.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index ed8f504..8902064 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1514,10 +1514,12 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(substitute* "time/zoneinfo_unix.go"
(("/usr/share/zoneinfo/") tzdata-path)))))
(replace 'build
- (lambda* (#:key inputs outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs (parallel-build? #t)
+ #:allow-other-keys)
;; FIXME: Some of the .a files are not bit-reproducible.
;; (Is this still true?)
- (let* ((output (assoc-ref outputs "out"))
+ (let* ((njobs (if parallel-build? (parallel-job-count) 1))
+ (output (assoc-ref outputs "out"))
(loader (string-append (assoc-ref inputs "libc")
,(glibc-dynamic-linker))))
(setenv "CC" (which "gcc"))
@@ -1526,6 +1528,7 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
(setenv "GOROOT" (dirname (getcwd)))
(setenv "GOROOT_FINAL" output)
(setenv "GOCACHE" "/tmp/go-cache")
+ (setenv "GOMAXPROCS" (number->string njobs))
(invoke "sh" "make.bash" "--no-banner"))))
(replace 'check
(lambda* (#:key target (tests? (not target)) (parallel-tests? #t)
- 04/15: gnu: ibus-rime: Update to 1.5.0., (continued)
- 04/15: gnu: ibus-rime: Update to 1.5.0., guix-commits, 2021/08/05
- 08/15: gnu: go-github-com-pelletier-go-toml: Update to 1.9.3., guix-commits, 2021/08/05
- 03/15: gnu: rime-data: Update to 0.38.20210802., guix-commits, 2021/08/05
- 11/15: gnu: go-github-com-dlclark-regexp2: Update to 1.4.0., guix-commits, 2021/08/05
- 12/15: gnu: go-gopkg-in-check-v1: Update to 1.0.0-20201130134442-10cb98267c6c., guix-commits, 2021/08/05
- 06/15: gnu: go-go-uber-org-atomic: Update to 1.8.0., guix-commits, 2021/08/05
- 09/15: gnu: go-github-com-masterminds-goutils: Update to 1.1.1., guix-commits, 2021/08/05
- 10/15: gnu: go-github-com-magiconair-properties: Update to 1.8.5., guix-commits, 2021/08/05
- 13/15: gnu: go-etcd-io-bbolt: Update to 1.3.6., guix-commits, 2021/08/05
- 14/15: gnu: earlyoom: Patch tests for go-1.16., guix-commits, 2021/08/05
- 15/15: gnu: go-1.16: Honor #:parallel-build?,
guix-commits <=