diff options
author | Scott Graham <scottmg@chromium.org> | 2015-06-18 22:41:47 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2015-06-18 22:41:47 (GMT) |
commit | fd4b140467887be6cb96154d28b9636fe387c69d (patch) | |
tree | 5720c9a8ea1089a66c63ed39fd2a76ffe31c5197 /src/build.cc | |
parent | 38aba9dbe68b800038f1cefc827362c126c7b212 (diff) | |
download | Ninja-fd4b140467887be6cb96154d28b9636fe387c69d.zip Ninja-fd4b140467887be6cb96154d28b9636fe387c69d.tar.gz Ninja-fd4b140467887be6cb96154d28b9636fe387c69d.tar.bz2 |
propagate include normalization failure to caller instead
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index cdb8e0a..fcde626 100644 --- a/src/build.cc +++ b/src/build.cc @@ -849,7 +849,8 @@ bool Builder::ExtractDeps(CommandRunner::Result* result, #ifdef _WIN32 if (deps_type == "msvc") { CLParser parser; - result->output = parser.Parse(result->output, deps_prefix); + if (!parser.Parse(result->output, deps_prefix, &result->output, err)) + return false; for (set<string>::iterator i = parser.includes_.begin(); i != parser.includes_.end(); ++i) { // ~0 is assuming that with MSVC-parsed headers, it's ok to always make |