From 81275d20c7d1a39b2360261ddcbf9bbbb1a1e849 Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Fri, 23 Dec 2011 20:27:11 -0500 Subject: [PATCH] Utilize JAMJOBS (jam 2.5-haiku-20111222) in InvokeSubJam. Note: As InvokeSubJam invokes a jam process separate from the first, JAMJOBS may result in up to 2 * n - 1 jobs in total being run. While this is not accurate, it is a better scenario than only a single job running. --- build/jam/HaikuImage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/jam/HaikuImage b/build/jam/HaikuImage index fa035f1ace..c902532989 100644 --- a/build/jam/HaikuImage +++ b/build/jam/HaikuImage @@ -762,7 +762,9 @@ if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) = 1 export HAIKU_IGNORE_USER_BUILD_CONFIG=1 export HAIKU_ADD_OPTIONAL_PACKAGES=$(OPTIONAL_PACKAGES) export HAIKU_PRIMARY_GCC=$(HAIKU_GCC_VERSION[1]) - $(JAM:E=jam) -q $(COMMAND_LINE) ; + # NOTE: depending on when InvokeSubJam is called, you may end up with + # 2 * n - 1 jobs in total. + $(JAM:E=jam) -q -j$(JAMJOBS) $(COMMAND_LINE) ; } local otherAlternativeSystemLibsZip