diff --git a/configure.py b/configure.py index 70288d8b0a74e1..dcdd0c9013b79f 100755 --- a/configure.py +++ b/configure.py @@ -2030,8 +2030,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')