Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2023 16:54:23 GMT
From:      Dmitri Goutnik <dmgk@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 04adf6779b40 - main - Mk/Uses/go.mk: Respect MAKE_JOBS_NUMBER
Message-ID:  <202303031654.323GsNOk066163@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04adf6779b409e1147ba05a5dfd47e7769436b45

commit 04adf6779b409e1147ba05a5dfd47e7769436b45
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2023-03-03 16:50:26 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2023-03-03 16:53:56 +0000

    Mk/Uses/go.mk: Respect MAKE_JOBS_NUMBER
    
    Limit GOMAXPROCS to MAKE_JOBS_NUMBER during build.
    
    Reported by:    fuz
---
 Mk/Uses/go.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
index 3b5e934776cc..863f375cfdf4 100644
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -220,7 +220,7 @@ do-build:
 		pkg=$$(${ECHO_CMD} $${t} | \
 			${SED} -Ee 's/^([^:]*).*$$/\1/' -e 's/^${PORTNAME}$$/./'); \
 		${ECHO_MSG} "===>  Building $${out} from $${pkg}"; \
-		${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} build ${GO_BUILDFLAGS} \
+		${SETENV} ${MAKE_ENV} ${GO_ENV} GOMAXPROCS=${MAKE_JOBS_NUMBER} GOPROXY=off ${GO_CMD} build ${GO_BUILDFLAGS} \
 			-o ${GO_WRKDIR_BIN}/$${out} \
 			$${pkg}; \
 	done)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303031654.323GsNOk066163>