[SVN-Commit] r1611 - trunk/Mk

svn-freebsd-gecko at chruetertee.ch svn-freebsd-gecko at chruetertee.ch
Sun Jun 22 15:42:31 UTC 2014


Author: jbeich
Date: Sun Jun 22 15:42:19 2014
New Revision: 1611

Log:
respect MAKE_JOBS_NUMBER regardless of kern.smp.cpus

PR:		184630

Modified:
   trunk/Mk/bsd.gecko.mk

Modified: trunk/Mk/bsd.gecko.mk
==============================================================================
--- trunk/Mk/bsd.gecko.mk	Sun Jun 22 04:25:57 2014	(r1610)
+++ trunk/Mk/bsd.gecko.mk	Sun Jun 22 15:42:19 2014	(r1611)
@@ -420,6 +420,17 @@
 MOZ_OPTIONS+=	--enable-strip --enable-install-strip
 .endif
 
+# _MAKE_JOBS is only available after bsd.port.post.mk, thus cannot be
+# used in .mozconfig. And client.mk automatically uses -jN where N
+# is what multiprocessing.cpu_count() returns.
+.if defined(MAKE_JOBS_NUMBER)
+MOZ_MAKE_FLAGS+=-j${MAKE_JOBS_NUMBER}
+.endif
+
+.if defined(MOZ_MAKE_FLAGS)
+MOZ_MK_OPTIONS+=MOZ_MAKE_FLAGS="${MOZ_MAKE_FLAGS}"
+.endif
+
 MOZ_SED_ARGS+=	-e's|@CPPFLAGS@|${CPPFLAGS}|g'		\
 		-e 's|@CFLAGS@|${CFLAGS}|g'		\
 		-e 's|@LDFLAGS@|${LDFLAGS}|g'		\


More information about the freebsd-gecko mailing list