diff options
author | Evan Martin <martine@danga.com> | 2011-01-07 21:54:52 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-07 21:54:52 (GMT) |
commit | 681de18033236071e822ca709d912d32cd4b2f83 (patch) | |
tree | fb204cdd86ee0937e5f0d1a14eade300e16f1b11 /src/build_log.cc | |
parent | e5ae916071a4e8467d7649a5cc700ca7310b6b69 (diff) | |
download | Ninja-681de18033236071e822ca709d912d32cd4b2f83.zip Ninja-681de18033236071e822ca709d912d32cd4b2f83.tar.gz Ninja-681de18033236071e822ca709d912d32cd4b2f83.tar.bz2 |
later entry in build log should overwrite earlier one
Diffstat (limited to 'src/build_log.cc')
-rw-r--r-- | src/build_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index ba09b46..65567da 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -76,7 +76,7 @@ bool BuildLog::Load(const string& path, string* err) { start = end + 1; end = strchr(start, '\n'); entry->command = string(start, end - start); - log_.insert(make_pair(entry->output, entry)); + log_[entry->output] = entry; } return true; |