From 9bf93c1ab73ee3cd2b763285fc5fc5456e972854 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Jan 2017 10:14:23 +0200 Subject: Implement support for narrowing down tests (config.test) --- build2/dist/init.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'build2/dist') diff --git a/build2/dist/init.cxx b/build2/dist/init.cxx index 14e1887..f185145 100644 --- a/build2/dist/init.cxx +++ b/build2/dist/init.cxx @@ -112,8 +112,8 @@ namespace build2 if (s) { - if (const value& cv = config::optional (r, "config.dist.root")) - v = cast (cv); // Strip abs_dir_path. + if (lookup l = config::optional (r, "config.dist.root")) + v = cast (l); // Strip abs_dir_path. } } @@ -124,10 +124,10 @@ namespace build2 if (s) { - if (const value& cv = config::required (r, - "config.dist.cmd", - path ("install")).first) - v = run_search (cast (cv), true); + if (lookup l = config::required (r, + "config.dist.cmd", + path ("install")).first) + v = run_search (cast (l), true); } } @@ -138,8 +138,8 @@ namespace build2 if (s) { - if (const value& cv = config::optional (r, "config.dist.archives")) - v = cv; + if (lookup l = config::optional (r, "config.dist.archives")) + v = *l; } } -- cgit v1.1