summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper_main-win32.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2015-06-18 22:41:47 (GMT)
committerScott Graham <scottmg@chromium.org>2015-06-18 22:41:47 (GMT)
commitfd4b140467887be6cb96154d28b9636fe387c69d (patch)
tree5720c9a8ea1089a66c63ed39fd2a76ffe31c5197 /src/msvc_helper_main-win32.cc
parent38aba9dbe68b800038f1cefc827362c126c7b212 (diff)
downloadNinja-fd4b140467887be6cb96154d28b9636fe387c69d.zip
Ninja-fd4b140467887be6cb96154d28b9636fe387c69d.tar.gz
Ninja-fd4b140467887be6cb96154d28b9636fe387c69d.tar.bz2
propagate include normalization failure to caller instead
Diffstat (limited to 'src/msvc_helper_main-win32.cc')
-rw-r--r--src/msvc_helper_main-win32.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msvc_helper_main-win32.cc b/src/msvc_helper_main-win32.cc
index 58bc797..680aaad 100644
--- a/src/msvc_helper_main-win32.cc
+++ b/src/msvc_helper_main-win32.cc
@@ -127,7 +127,9 @@ int MSVCHelperMain(int argc, char** argv) {
if (output_filename) {
CLParser parser;
- output = parser.Parse(output, deps_prefix);
+ string err;
+ if (!parser.Parse(output, deps_prefix, &output, &err))
+ Fatal("%s\n", err.c_str());
WriteDepFileOrDie(output_filename, parser);
}