summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper-win32.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2012-09-17 22:46:55 (GMT)
committerScott Graham <scottmg@chromium.org>2012-09-17 22:46:55 (GMT)
commit0adc69945cb9a0d6b7d150b409ddcc7194552b93 (patch)
tree9927c97a8118c6a7332df6a96d7b6a10ccab7c78 /src/msvc_helper-win32.cc
parentd95fcb0cdc816e2585ce9a65676320d71af78c7f (diff)
downloadNinja-0adc69945cb9a0d6b7d150b409ddcc7194552b93.zip
Ninja-0adc69945cb9a0d6b7d150b409ddcc7194552b93.tar.gz
Ninja-0adc69945cb9a0d6b7d150b409ddcc7194552b93.tar.bz2
don't emit duplicate headers for msvc helper
Diffstat (limited to 'src/msvc_helper-win32.cc')
-rw-r--r--src/msvc_helper-win32.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msvc_helper-win32.cc b/src/msvc_helper-win32.cc
index 8e440fe..a9f34aa 100644
--- a/src/msvc_helper-win32.cc
+++ b/src/msvc_helper-win32.cc
@@ -125,7 +125,7 @@ int CLWrapper::Run(const string& command, string* extra_output) {
if (!include.empty()) {
include = IncludesNormalize::Normalize(include, NULL);
if (!IsSystemInclude(include))
- includes_.push_back(include);
+ includes_.insert(include);
} else if (FilterInputFilename(line)) {
// Drop it.
// TODO: if we support compiling multiple output files in a single