[packages/rpm-pld-macros] define GOMAXPROCS to control parallel go build
atler
atler at pld-linux.org
Wed Feb 23 20:23:32 CET 2022
commit 8fabd0dae68679fad3f8687075dce547b6ac0376
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Feb 23 19:15:20 2022 +0100
define GOMAXPROCS to control parallel go build
macros.go | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/macros.go b/macros.go
index 07efe21..fcc1893 100644
--- a/macros.go
+++ b/macros.go
@@ -31,5 +31,6 @@
%ifarch mips mips64 ppc64 ppc64le riscv64 s390x \
GOARCH=${GOARCH-%{_arch}} \\\
%endif \
+ %{?__jobs:GOMAXPROCS=%{__jobs}} \\\
GOOS=${GOOS-linux} \\\
/usr/bin/go
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/1a1df62c26c205e3c0a594f53bb842b03b818666
More information about the pld-cvs-commit
mailing list