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
1 changed files with 2 additions and 0 deletions

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):