| Index: tools/gn/bin/gyp_flag_compare.py
|
| diff --git a/tools/gn/bin/gyp_flag_compare.py b/tools/gn/bin/gyp_flag_compare.py
|
| index aa5bcf9b2d2149a975c735c3319eb9a526c938fa..1af3aae3c94438e349789cad38c0bc03ce83ca45 100755
|
| --- a/tools/gn/bin/gyp_flag_compare.py
|
| +++ b/tools/gn/bin/gyp_flag_compare.py
|
| @@ -9,6 +9,7 @@ build, report on differences between the command lines."""
|
|
|
|
|
| import os
|
| +import shlex
|
| import subprocess
|
| import sys
|
|
|
| @@ -76,8 +77,7 @@ def GetFlags(lines):
|
| if 'clang' not in line:
|
| continue
|
|
|
| - # TODO(scottmg): Proper escapes.
|
| - command_line = line.strip().split()[1:]
|
| + command_line = shlex.split(line.strip())[1:]
|
|
|
| output_name = FindAndRemoveArgWithValue(command_line, '-o')
|
| dep_name = FindAndRemoveArgWithValue(command_line, '-MF')
|
|
|