]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
define GOMAXPROCS to control parallel go build
authorJan Palus <atler@pld-linux.org>
Wed, 23 Feb 2022 18:15:20 +0000 (19:15 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 23 Feb 2022 18:15:20 +0000 (19:15 +0100)
macros.go

index 07efe21cd35d31d75562f9c886413f966ca53769..fcc1893575cf800cb2adda3fa5163739ce433a32 100644 (file)
--- 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
This page took 0.506952 seconds and 4 git commands to generate.