summaryrefslogtreecommitdiffstats
path: root/src/ninja.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/ninja.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/ninja.cc')
-rw-r--r--src/ninja.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 0586bdc..a313ecb 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -32,8 +32,8 @@
#include "build_log.h"
#include "deps_log.h"
#include "clean.h"
+#include "debug_flags.h"
#include "disk_interface.h"
-#include "explain.h"
#include "graph.h"
#include "graphviz.h"
#include "manifest_parser.h"
@@ -747,6 +747,7 @@ bool DebugEnable(const string& name) {
printf("debugging modes:\n"
" stats print operation counts/timing info\n"
" explain explain what caused a command to execute\n"
+" keeprsp don't delete @response files on success\n"
"multiple modes can be enabled via -d FOO -d BAR\n");
return false;
} else if (name == "stats") {
@@ -755,6 +756,9 @@ bool DebugEnable(const string& name) {
} else if (name == "explain") {
g_explaining = true;
return true;
+ } else if (name == "keeprsp") {
+ g_keep_rsp = true;
+ return true;
} else {
const char* suggestion =
SpellcheckString(name.c_str(), "stats", "explain", NULL);