Commit 75fa8552 authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Quote the full path to ninja.exe.

Bug: 902930
Change-Id: I5f160cd2ff7a9da603b029c894c84db1c5ed8374
Reviewed-on: https://chromium-review.googlesource.com/c/1324650Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
parent 49c8eafc
......@@ -67,9 +67,16 @@ except IOError:
# be called back.
ninja_exe = 'ninja.exe' if sys.platform.startswith('win') else 'ninja'
ninja_exe_path = os.path.join(SCRIPT_DIR, ninja_exe)
# On Windows, fully quote the path so that the command processor doesn't think
# the whole output is the command.
if sys.platform.startswith('win'):
ninja_exe_path = '"' + ninja_exe_path + '"'
# Use absolute path for ninja path,
# or fail to execute ninja if depot_tools is not in PATH.
args = [os.path.join(SCRIPT_DIR, ninja_exe)] + input_args[1:]
args = [ninja_exe_path] + input_args[1:]
num_cores = multiprocessing.cpu_count()
if not j_specified and not t_specified:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment