diff options
Diffstat (limited to 'build2/dist')
-rw-r--r-- | build2/dist/init.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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<dir_path> (cv); // Strip abs_dir_path. + if (lookup l = config::optional (r, "config.dist.root")) + v = cast<dir_path> (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<path> (cv), true); + if (lookup l = config::required (r, + "config.dist.cmd", + path ("install")).first) + v = run_search (cast<path> (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; } } |