diff options
| author | ruki <[email protected]> | 2022-09-04 22:16:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-04 22:16:54 +0800 |
| commit | 690073e61bcf916e516e3406a31d64b9e1963441 (patch) | |
| tree | b69fe2d555cfcd88c3621967fff37a03220e89a3 | |
| parent | 6175fa9fc9781b22da3c3f8fca54318eb9bb3101 (diff) | |
add target runenvs for xrepo.env
| -rw-r--r-- | xmake/modules/private/xrepo/action/env.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index 02ef2c4e7..4b5bb319e 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -27,6 +27,7 @@ import("core.project.config") import("core.project.project") import("core.tool.toolchain") import("lib.detect.find_tool") +import("private.action.run.make_runenvs") import("private.action.require.impl.package") import("private.action.require.impl.utils.get_requires") @@ -307,6 +308,11 @@ function _target_addenvs(envs) _addenvs(envs, "DYLD_LIBRARY_PATH", target:targetdir()) end end + -- add run environments + local addrunenvs = make_runenvs(target) + for name, values in pairs(addrunenvs) do + _addenvs(envs, name, table.unpack(table.wrap(values))) + end end end |
