From 5035f4ef68922ac758b1e4734e67d73c9228010b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Aug 2019 14:38:57 +0200 Subject: Introduce notion of build context All non-const global state is now in class context and we can now have multiple independent builds going on at the same time. --- tests/libbuild2/driver.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/libbuild2/driver.cxx b/tests/libbuild2/driver.cxx index 706d276..a70e707 100644 --- a/tests/libbuild2/driver.cxx +++ b/tests/libbuild2/driver.cxx @@ -5,7 +5,7 @@ #include #include -#include // sched, reset() +#include #include #include @@ -26,8 +26,8 @@ main (int, char* argv[]) in::build2_in_load (); version::build2_version_load (); - sched.startup (1); // Serial execution. - reset (strings ()); // No command line variables. + scheduler sched (1); // Serial execution. + context ctx (sched); return 0; } -- cgit v1.1