diff options
| author | ruki <[email protected]> | 2019-09-02 22:43:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-02 10:19:26 +0800 |
| commit | 9d474b48292f4b268493af40bfef738ac026396b (patch) | |
| tree | fb9a00d4b32e35bd873bdca9bd54b69d513172b4 | |
| parent | bb1cd08b49ce18a63d08287b81f5b50b57395702 (diff) | |
add package run dirs
| -rw-r--r-- | xmake/modules/private/action/run/make_runenvs.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/action/run/make_runenvs.lua b/xmake/modules/private/action/run/make_runenvs.lua index 0f6bdd5d2..617bd64eb 100644 --- a/xmake/modules/private/action/run/make_runenvs.lua +++ b/xmake/modules/private/action/run/make_runenvs.lua @@ -43,6 +43,11 @@ function _make_runpath_on_windows(target) insert(linkdir) end end + for _, pkg in ipairs(target:orderpkgs()) do + for _, linkdir in ipairs(pkg:get("linkdirs")) do + insert(linkdir) + end + end for _, dep in ipairs(target:orderdeps()) do if dep:targetkind() == "shared" then insert(dep:targetdir()) |
