diff options
author | Evan Martin <martine@danga.com> | 2011-12-19 19:14:35 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-19 19:18:47 (GMT) |
commit | bbf180d581ada47011c66c735bffdd87cddd0bd1 (patch) | |
tree | eee9a168a0d1ba0f786d1a78bd10d59b82172aa6 /configure.py | |
parent | 8b929cf7c82b5ff84a874c5a25e919446c3874d5 (diff) | |
download | Ninja-bbf180d581ada47011c66c735bffdd87cddd0bd1.zip Ninja-bbf180d581ada47011c66c735bffdd87cddd0bd1.tar.gz Ninja-bbf180d581ada47011c66c735bffdd87cddd0bd1.tar.bz2 |
handle backslashes and isolated colons in depfile parser
The logic was wrong if the input looked like
foo : bar baz
with a space before the colon.
Test from Frances <frances.buontempo@gmail.com>.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 400cf42..c342677 100755 --- a/configure.py +++ b/configure.py @@ -143,7 +143,7 @@ if platform != 'mingw': n.comment('the depfile parser is generated using re2c.') n.rule('re2c', - command='re2c -b --no-generation-date -o $out $in', + command='re2c -b -i --no-generation-date -o $out $in', description='RE2C $out') # Generate the .cc file in the source directory so we can check it in. n.build(src('depfile_parser.cc'), 're2c', src('depfile_parser.in.cc')) |