From 7a4f1ae238b918fe21671d0d1a5549aeb1fe6425 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Mar 2021 11:36:10 +0200 Subject: Define intermediate build results file cache interface --- build2/b.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/b.cxx') 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 #include #include +#include #include #include @@ -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 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 (), -- cgit v1.1