diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-03-26 16:03:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-04-02 12:07:38 +0200 |
commit | b3bc26dc284cf73e97b88c9979d49368d07e686c (patch) | |
tree | 59ab65ede17e84b2fa463a4d27eaaa92fd0f8b85 /libbuild2/dist/operation.cxx | |
parent | 5f768f4f3e6e9e1b7310a0e8b09a97bf6d0115ea (diff) |
Add support for propagating project environment
Diffstat (limited to 'libbuild2/dist/operation.cxx')
-rw-r--r-- | libbuild2/dist/operation.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/dist/operation.cxx b/libbuild2/dist/operation.cxx index f04a809..edb8162 100644 --- a/libbuild2/dist/operation.cxx +++ b/libbuild2/dist/operation.cxx @@ -426,6 +426,10 @@ namespace build2 add_subdir (rs, dir_path (), files); } + // Apply project environment. + // + auto_project_env penv (rs); + dir_path td (dist_root / dir_path (dist_package)); // Clean up the target directory. @@ -502,7 +506,10 @@ namespace build2 } if (path_match (t.path ().leaf ().string (), pat.leaf ().string ())) + { + auto_project_env penv (*srs); cb.function (r, *srs, cb.data); + } } if (prog) |