diff --git a/configure.py b/configure.py index 3209c5a6472986..c17e3c6dfaab34 100755 --- a/configure.py +++ b/configure.py @@ -2031,8 +2031,8 @@ def make_bin_override(): 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')