diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-25 22:04:28 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 14:36:19 +0200 |
commit | e6470e37093084251b7ee60a904a78e54d13e31b (patch) | |
tree | 02845c95ff3c9a16808d2f5b602f8ae83ab3dc43 /libbuild2/build/script | |
parent | f5fba11159da64e53829a151a9d19d022ac63662 (diff) |
Use dir_name_view for script environment working and sandbox directories
Diffstat (limited to 'libbuild2/build/script')
-rw-r--r-- | libbuild2/build/script/script.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/build/script/script.cxx b/libbuild2/build/script/script.cxx index c258c4c..d27a30a 100644 --- a/libbuild2/build/script/script.cxx +++ b/libbuild2/build/script/script.cxx @@ -17,14 +17,14 @@ namespace build2 { // environment // - static const string wd_name ("current directory"); + static const optional<string> wd_name ("current directory"); environment:: environment (action a, const target_type& t) : build2::script::environment ( t.ctx, cast<target_triplet> (t.ctx.global_scope["build.host"]), - work, wd_name, + dir_name_view (&work, &wd_name), temp_dir.path, false /* temp_dir_keep */, redirect (redirect_type::none), redirect (redirect_type::merge, 2), |