git: 04adf6779b40 - main - Mk/Uses/go.mk: Respect MAKE_JOBS_NUMBER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Mar 2023 16:54:23 UTC
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)