pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/go
Module Name: pkgsrc
Committed By: riastradh
Date: Sun Mar 30 14:56:44 UTC 2025
Modified Files:
pkgsrc/lang/go: go-module.mk
Log Message:
lang/go: Set GOMAXPROCS according to MAKE_JOBS.
Even though we set MAKE_JOBS_SAFE=no in go-module.mk (not really sure
why, wish we had a comment giving a reason!), golang itself may run
multiple threads internally up to the number of CPUs it finds unless
we sternly instruct it not to abuse resources it wasn't offered by
setting GOMAXPROCS.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/go/go-module.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/go/go-module.mk
diff -u pkgsrc/lang/go/go-module.mk:1.23 pkgsrc/lang/go/go-module.mk:1.24
--- pkgsrc/lang/go/go-module.mk:1.23 Thu Feb 6 00:24:36 2025
+++ pkgsrc/lang/go/go-module.mk Sun Mar 30 14:56:44 2025
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.23 2025/02/06 00:24:36 riastradh Exp $
+# $NetBSD: go-module.mk,v 1.24 2025/03/30 14:56:44 riastradh Exp $
#
# This file implements common logic for compiling Go programs in pkgsrc.
#
@@ -73,6 +73,8 @@ GOPATH_BIN= bin
.endif
+ALL_ENV+= GOMAXPROCS=${MAKE_JOBS:U1}
+
post-extract: ${GO_CACHE_DIR}
${GO_CACHE_DIR}:
@${MKDIR} ${.TARGET}
Home |
Main Index |
Thread Index |
Old Index