diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-03-16 11:36:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-03-16 11:36:10 +0200 |
commit | 7a4f1ae238b918fe21671d0d1a5549aeb1fe6425 (patch) | |
tree | 6501d18854cc85644a3e73a857fda82b17b73c45 /build2/b.cxx | |
parent | 99046d23d78d341674bbad3414567f362ffc60cd (diff) |
Define intermediate build results file cache interface
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index ecf8c7f..81520bb 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -37,6 +37,7 @@ #include <libbuild2/buildspec.hxx> #include <libbuild2/operation.hxx> #include <libbuild2/filesystem.hxx> +#include <libbuild2/file-cache.hxx> #include <libbuild2/diagnostics.hxx> #include <libbuild2/prerequisite.hxx> @@ -761,6 +762,7 @@ main (int argc, char* argv[]) : nullopt)); global_mutexes mutexes (sched.shard_size ()); + file_cache fcache (sched); // Trace some overall environment information. // @@ -780,11 +782,12 @@ main (int argc, char* argv[]) // below). // unique_ptr<context> ctx; - auto new_context = [&ctx, &sched, &mutexes, &cmd_vars] + auto new_context = [&ctx, &sched, &mutexes, &fcache, &cmd_vars] { ctx = nullptr; // Free first. ctx.reset (new context (sched, mutexes, + fcache, ops.match_only (), ops.no_external_modules (), ops.dry_run (), |