summaryrefslogtreecommitdiff
path: root/dev-util/premake/files/premake-5.0.0_alpha16-respect-MAKEOPTS-jobs.patch
blob: 766d2aea71b4e56414b3005ece3eebe8fb420ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
https://bugs.gentoo.org/773505

From 89d8c74f0c9ba77aaa12799a9d2dc397eac4ece6 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sun, 15 Aug 2021 21:47:20 +0100
Subject: [PATCH] Respect MAKEOPTS jobs

---
 Bootstrap.mak | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Bootstrap.mak b/Bootstrap.mak
index 06e0f20..2d59068 100644
--- a/Bootstrap.mak
+++ b/Bootstrap.mak
@@ -101,7 +101,7 @@ osx: osx-clean
 	$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_MACOSX -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" -framework CoreServices -framework Foundation -framework Security -lreadline $(SRC)
 	./build/bootstrap/premake_bootstrap embed
 	./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake2
-	$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)
+	$(MAKE) -C build/bootstrap config=$(CONFIG)
 
 linux-clean: nix-clean
 
@@ -110,7 +110,7 @@ linux: linux-clean
 	$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt
 	./build/bootstrap/premake_bootstrap embed
 	./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake2
-	$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)
+	$(MAKE) -C build/bootstrap config=$(CONFIG)
 
 bsd-clean: nix-clean
 
@@ -119,7 +119,7 @@ bsd: bsd-clean
 	$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm
 	./build/bootstrap/premake_bootstrap embed
 	./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake2
-	$(MAKE) -C build/bootstrap -j`getconf NPROCESSORS_ONLN` config=$(CONFIG)
+	$(MAKE) -C build/bootstrap config=$(CONFIG)
 
 solaris-clean: nix-clean
 
@@ -128,7 +128,7 @@ solaris: solaris-clean
 	$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm
 	./build/bootstrap/premake_bootstrap embed
 	./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake2
-	$(MAKE) -C build/bootstrap -j`getconf NPROCESSORS_ONLN` config=$(CONFIG)
+	$(MAKE) -C build/bootstrap config=$(CONFIG)
 
 haiku-clean: nix-clean
 
@@ -137,7 +137,7 @@ haiku: haiku-clean
 	$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_BSD_SOURCE -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lbsd
 	./build/bootstrap/premake_bootstrap embed
 	./build/bootstrap/premake_bootstrap --to=build/bootstrap gmake2
-	$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)
+	$(MAKE) -C build/bootstrap config=$(CONFIG)
 
 windows-base: windows-clean
 	if not exist build\bootstrap (mkdir build\bootstrap)
-- 
2.32.0