2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 11:19:52 +01:00

Silently ignore negative values for -j

This commit is contained in:
Thomas Nagy 2019-09-26 21:50:18 +02:00
parent f7cfcce157
commit 2758fb3f7c

View File

@ -282,6 +282,8 @@ class OptionsContext(Context.Context):
elif arg != 'options':
commands.append(arg)
if options.jobs < 1:
options.jobs = 1
for name in 'top out destdir prefix bindir libdir'.split():
# those paths are usually expanded from Context.launch_dir
if getattr(options, name, None):