[packages/golang] set GOMAXPROCS
atler
atler at pld-linux.org
Wed Nov 8 02:45:41 CET 2023
commit 7858ecf9cc277445bb60b082df91305062d6f052
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Nov 8 00:51:25 2023 +0100
set GOMAXPROCS
golang.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/golang.spec b/golang.spec
index 64417ba..d827143 100644
--- a/golang.spec
+++ b/golang.spec
@@ -2,7 +2,6 @@
# TODO
# - allow disabling tests (currently bcond exists just for showing which are test deps)
# - add verbose build output (currently dummy bcond)
-# - setup GOMAXPROCS=2 from _smp_mflags
# - fix CC containing spaces (ccache)
# - check if hg use at build time can be dropped
# - build all target archs, subpackage them: http://golang.org/doc/install/source#environment
@@ -180,6 +179,7 @@ export LDFLAGS="%{rpmldflags}"
CC="%{__cc}"
export CC="${CC#ccache }"
export CC_FOR_TARGET="$CC"
+%{?__jobs:export GOMAXPROCS=%{__jobs}}
EOF
grep -rl '#!.*env bash' . | xargs %{__sed} -i -e '1{
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/golang.git/commitdiff/7858ecf9cc277445bb60b082df91305062d6f052
More information about the pld-cvs-commit
mailing list