diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-11-08 20:39:34 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-11-13 06:16:28 +0000 |
| commit | 3f2c61f45985e9fb34d0ea03566a60a63c6c31b6 (patch) | |
| tree | c92a29d58cb660ab45b17c861d64e661e305547d | |
| parent | b8584ea0ae3b1604e486b31dc569f80c14a2fdc0 (diff) | |
| download | gentoo-3f2c61f45985e9fb34d0ea03566a60a63c6c31b6.tar.gz gentoo-3f2c61f45985e9fb34d0ea03566a60a63c6c31b6.tar.bz2 gentoo-3f2c61f45985e9fb34d0ea03566a60a63c6c31b6.zip | |
ninja-utils.eclass: Warn if NINJAOPTS diable jobserver support
Warn if NINJAOPTS specifies "-j" option and a jobserver is available,
since it will implicitly disable the jobserver support.
Bug: https://bugs.gentoo.org/692576
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44539
Closes: https://github.com/gentoo/gentoo/pull/44539
Signed-off-by: Sam James <sam@gentoo.org>
| -rw-r--r-- | eclass/ninja-utils.eclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass index 0ac23b7d4799..1ffb358d7fa1 100644 --- a/eclass/ninja-utils.eclass +++ b/eclass/ninja-utils.eclass @@ -116,6 +116,9 @@ get_NINJAOPTS() { # ninja only uses jobserver if -j is not passed NINJAOPTS+=" -j$(get_makeopts_jobs 999)" fi + elif _ninja_uses_jobserver && [[ ${NINJAOPTS} == *-j* ]]; then + ewarn "Jobserver detected, but NINJAOPTS specifies -j option." + ewarn "To enable ninja jobserver support, remove -j from NINJAOPTS." fi echo "${NINJAOPTS}" } |
