diff --git a/configure.py b/configure.py index 70288d8b0a7..dcdd0c9013b 100755 --- a/configure.py +++ b/configure.py @@ -2030,8 +2030,8 @@ if options.compile_commands_json: if bin_override is not None: gyp_args += ['-Dpython=' + sys.executable] -# pass the leftover positional arguments to GYP -gyp_args += args +# pass the leftover non-whitespace positional arguments to GYP +gyp_args += [arg for arg in args if not str.isspace(arg)] if warn.warned and not options.verbose: warn('warnings were emitted in the configure phase')