diff options
| author | ruki <[email protected]> | 2019-05-05 21:50:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-05 21:50:48 +0800 |
| commit | f97082c4db805cf7989eb6a2a1cd549a1d6d49a5 (patch) | |
| tree | 7530d05a74a058c137b1e15cdd839b37fb0a2d32 /xmake/actions/require/impl/package.lua | |
| parent | dfdbe5da7702606001a2141082708f6ed5acd733 (diff) | |
improve fetch package and envs
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index 56f1b9f7e..4f49b4a11 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -332,6 +332,9 @@ function _load_package(packagename, requireinfo) on_load(package) end + -- load environments from the manifest + package:envs_load() + -- save this package package to cache packages[packagename] = package _g._PACKAGES = packages @@ -697,7 +700,9 @@ function install_packages(requires, opt) process.runjobs(function (index) local package = packages[index] if package then + package:envs_enter() package:fetch() + package:envs_leave() end end, #packages) end |
