diff options
author | Scott Graham <scottmg@chromium.org> | 2013-09-10 22:34:01 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2013-09-10 22:34:01 (GMT) |
commit | cc89c1aaec13487dc633cd69f7022fcb72fc1c10 (patch) | |
tree | 2172945e24d3a4a1df6758794f3691363a3e18c6 /src/build.cc | |
parent | e36590b781d956acf9711da311d0934471f95643 (diff) | |
download | Ninja-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.cc | 3 |
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()) { |