diff options
| author | ruki <[email protected]> | 2020-11-18 23:31:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-18 23:31:08 +0800 |
| commit | 9980a379d2d79877aebaed43fbec123279e69854 (patch) | |
| tree | 44557d1fac6e72c572f08bfe134c30f13747d464 /xmake/actions/require/impl | |
| parent | b7aee98613d00f768010cdf95273a9bf129ad906 (diff) | |
improve package envs
Diffstat (limited to 'xmake/actions/require/impl')
| -rw-r--r-- | xmake/actions/require/impl/actions/install.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/actions/require/impl/actions/install.lua b/xmake/actions/require/impl/actions/install.lua index 01079bb8b..9983f9868 100644 --- a/xmake/actions/require/impl/actions/install.lua +++ b/xmake/actions/require/impl/actions/install.lua @@ -181,6 +181,9 @@ function main(package) end -- enter the package environments + for _, dep in ipairs(package:orderdeps()) do + dep:envs_enter() + end package:envs_enter() -- fetch package and force to flush the cache @@ -202,6 +205,9 @@ function main(package) -- leave the package environments package:envs_leave() + for _, dep in irpairs(package:orderdeps()) do + dep:envs_leave() + end -- trace tty.erase_line_to_start().cr() |
