aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-19 09:52:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-19 09:52:50 +0200
commit14b8aa90926bdc7233caa926d81984c6593e1f76 (patch)
tree1476a5d48b2a9be2332b59a82004342bbc42edc9 /build2
parenta5cfd981acb3e91bed7bd30f7c1e2df88cc3629b (diff)
Temporarily default to noop file cache
Diffstat (limited to 'build2')
-rw-r--r--build2/b.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 1ba15e2..93c02b4 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -763,13 +763,15 @@ main (int argc, char* argv[])
global_mutexes mutexes (sched.shard_size ());
- bool fcache_comp (true);
+ bool fcache_comp (false);
if (ops.file_cache_specified ())
{
const string& v (ops.file_cache ());
if (v == "noop" || v == "none")
fcache_comp = false;
- else if (v != "sync-lz4")
+ else if (v == "sync-lz4")
+ fcache_comp = true;
+ else
fail << "invalid --file-cache value '" << v << "'";
}