blob: b6f05c5a59c5adc5d11f1c4970deb9aa40f4c4f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Allows passing --load-average and not passing --jobs which would stop the jobserver from working.
This is a Gentoo'ism so its not upstreamable in this form.
diff --git a/build_scripts/main.py b/build_scripts/main.py
index cdaa439ff..3e088961e 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -854,8 +854,8 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin):
log.info(f"-- Compiling module {extension}...")
cmd_make = [str(self.make_path)]
- if OPTION["JOBS"]:
- cmd_make.append(OPTION["JOBS"])
+ if self.make_generator == "Ninja":
+ cmd_make.extend(os.getenv("NINJAOPTS").split())
if OPTION["LOG_LEVEL"] == LogLevel.VERBOSE and self.make_generator == "Ninja":
cmd_make.append("-v")
if run_process(cmd_make) != 0:
|