diff --git a/configure.py b/configure.py index a826e69b0dcdac..47137d8912dd14 100755 --- a/configure.py +++ b/configure.py @@ -2043,8 +2043,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')