summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2013-09-10 22:34:01 (GMT)
committerScott Graham <scottmg@chromium.org>2013-09-10 22:34:01 (GMT)
commitcc89c1aaec13487dc633cd69f7022fcb72fc1c10 (patch)
tree2172945e24d3a4a1df6758794f3691363a3e18c6 /src/build.cc
parente36590b781d956acf9711da311d0934471f95643 (diff)
downloadNinja-cc89c1aaec13487dc633cd69f7022fcb72fc1c10.zip
Ninja-cc89c1aaec13487dc633cd69f7022fcb72fc1c10.tar.gz
Ninja-cc89c1aaec13487dc633cd69f7022fcb72fc1c10.tar.bz2
add -d keeprsp to preserve @rsp files on success on windows
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc
index 8a93632..9718f85 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -25,6 +25,7 @@
#endif
#include "build_log.h"
+#include "debug_flags.h"
#include "depfile_parser.h"
#include "deps_log.h"
#include "disk_interface.h"
@@ -776,7 +777,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
// Delete any left over response file.
string rspfile = edge->GetBinding("rspfile");
- if (!rspfile.empty())
+ if (!rspfile.empty() && !g_keep_rsp)
disk_interface_->RemoveFile(rspfile);
if (scan_.build_log()) {