]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
cmake: Do not limit compile processes to only two
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Aug 2020 18:13:58 +0000 (18:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2020 10:29:43 +0000 (10:29 +0000)
We can launch more when we have the memory for it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/cmake

index 5ad5ebb70de28951f26f28d14ea6c95d3ebd6ada..5b98644db23f9f51597cd5cce0bab3d1c23725d8 100644 (file)
--- a/lfs/cmake
+++ b/lfs/cmake
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
-MAKETUNING = -j2
+MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 512)))
 
 ###############################################################################
 # Top-level Rules