summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-06-27 20:03:41 (GMT)
committerNico Weber <thakis@chromium.org>2014-06-27 20:03:41 (GMT)
commitf6baa1b8e83efe007af3485f0595bec00f830a8f (patch)
tree890dafa85ff682b7f606784a30287b38fab1a720 /src/ninja.cc
parent234e49931293c9df77cc696b40038827b34a0bbf (diff)
downloadNinja-f6baa1b8e83efe007af3485f0595bec00f830a8f.zip
Ninja-f6baa1b8e83efe007af3485f0595bec00f830a8f.tar.gz
Ninja-f6baa1b8e83efe007af3485f0595bec00f830a8f.tar.bz2
Rename -d nowinstatcache to -d nostatcache; might become useful elsewhere (#787)
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 15e265b..a381e83 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -763,7 +763,7 @@ bool DebugEnable(const string& name) {
" explain explain what caused a command to execute\n"
" keeprsp don't delete @response files on success\n"
#ifdef _WIN32
-" nowinstatcache don't batch stat() calls per directory and cache them\n"
+" nostatcache don't batch stat() calls per directory and cache them\n"
#endif
"multiple modes can be enabled via -d FOO -d BAR\n");
return false;
@@ -776,13 +776,13 @@ bool DebugEnable(const string& name) {
} else if (name == "keeprsp") {
g_keep_rsp = true;
return true;
- } else if (name == "nowinstatcache") {
- g_experimental_win_statcache = false;
+ } else if (name == "nostatcache") {
+ g_experimental_statcache = false;
return true;
} else {
const char* suggestion =
SpellcheckString(name.c_str(), "stats", "explain", "keeprsp",
- "nowinstatcache", NULL);
+ "nostatcache", NULL);
if (suggestion) {
Error("unknown debug setting '%s', did you mean '%s'?",
name.c_str(), suggestion);
@@ -891,7 +891,7 @@ int NinjaMain::RunBuild(int argc, char** argv) {
return 1;
}
- disk_interface_.AllowStatCache(g_experimental_win_statcache);
+ disk_interface_.AllowStatCache(g_experimental_statcache);
Builder builder(&state_, config_, &build_log_, &deps_log_, &disk_interface_);
for (size_t i = 0; i < targets.size(); ++i) {