diff options
author | Scott Graham <scottmg@chromium.org> | 2015-06-18 22:52:25 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2015-06-18 22:52:25 (GMT) |
commit | 312c6aa131943408e9a0268c11806369f84063e3 (patch) | |
tree | 3a6351e50bf8748ce69d1ec749b5bb9c5ebed6b6 /src/build.cc | |
parent | fd4b140467887be6cb96154d28b9636fe387c69d (diff) | |
download | Ninja-312c6aa131943408e9a0268c11806369f84063e3.zip Ninja-312c6aa131943408e9a0268c11806369f84063e3.tar.gz Ninja-312c6aa131943408e9a0268c11806369f84063e3.tar.bz2 |
don't alias input/output in ExtractDeps (i.e. actually works now)
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index fcde626..e4820d0 100644 --- a/src/build.cc +++ b/src/build.cc @@ -849,8 +849,10 @@ bool Builder::ExtractDeps(CommandRunner::Result* result, #ifdef _WIN32 if (deps_type == "msvc") { CLParser parser; - if (!parser.Parse(result->output, deps_prefix, &result->output, err)) + string output; + if (!parser.Parse(result->output, deps_prefix, &output, err)) return false; + result->output = output; 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 |