summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper_main-win32.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2012-09-20 00:15:55 (GMT)
committerScott Graham <scottmg@chromium.org>2012-09-20 00:15:55 (GMT)
commit21046b4a3e153754ab8f632c0b65ec1c61f7b828 (patch)
treead3dc3b0af97b76c42579533f966b6f8fb783aa8 /src/msvc_helper_main-win32.cc
parente6c8bd91c22b64374aa7a1c84ae0a462f4fe2896 (diff)
downloadNinja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.zip
Ninja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.tar.gz
Ninja-21046b4a3e153754ab8f632c0b65ec1c61f7b828.tar.bz2
fix spaces in headers for -t msvc
Diffstat (limited to 'src/msvc_helper_main-win32.cc')
-rw-r--r--src/msvc_helper_main-win32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msvc_helper_main-win32.cc b/src/msvc_helper_main-win32.cc
index ed7674c..5e28e6d 100644
--- a/src/msvc_helper_main-win32.cc
+++ b/src/msvc_helper_main-win32.cc
@@ -105,8 +105,8 @@ int MSVCHelperMain(int argc, char** argv) {
Fatal("opening %s: %s", depfile.c_str(), GetLastErrorString().c_str());
}
fprintf(output, "%s: ", output_filename);
- for (set<string>::iterator i = cl.includes_.begin();
- i != cl.includes_.end(); ++i) {
+ vector<string> headers = cl.GetEscapedResult();
+ for (vector<string>::iterator i = headers.begin(); i != headers.end(); ++i) {
fprintf(output, "%s\n", i->c_str());
}
fclose(output);