Commit d050260a authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update compile_db.py clang script for Windows.

compile_db.py needs to split commands in non-posix mode on Windows.

Bug: 844348
Change-Id: I5fdcb84fb8ddca7765d5d96b66ee1c54236b9265
Reviewed-on: https://chromium-review.googlesource.com/1107812
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569183}
parent ad0a4cd9
......@@ -17,7 +17,7 @@ _debugging = False
def _ProcessEntry(entry):
"""Transforms one entry in the compile database to be clang-tool friendly."""
split_command = shlex.split(entry['command'])
split_command = shlex.split(entry['command'], posix=(sys.platform != 'win32'))
# Drop gomacc.exe from the front, if present.
if split_command[0].endswith('gomacc.exe'):
......
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