summaryrefslogtreecommitdiff
path: root/xmake/modules/target
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-17 00:57:22 +0800
committerruki <[email protected]>2024-07-17 00:57:22 +0800
commitad8a223ce684cd394179aca49fbea9c7b2e0d4c0 (patch)
tree336c5e99524b50b66780eb4da5fcd31b3543c24a /xmake/modules/target
parent10df5c458fcf66832c0ef437157c7397f2283b18 (diff)
add rpath for xpack
Diffstat (limited to 'xmake/modules/target')
-rw-r--r--xmake/modules/target/action/install/main.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/main.lua b/xmake/modules/target/action/install/main.lua
index 6abc513b8..aaa99c4f2 100644
--- a/xmake/modules/target/action/install/main.lua
+++ b/xmake/modules/target/action/install/main.lua
@@ -136,9 +136,12 @@ end
-- update install rpath, we can only get and update rpathdirs with `{installonly = true}`
-- e.g. add_rpathdirs("@loader_path/../lib", {installonly = true})
function _update_install_rpath(target, opt)
+ if target:is_plat("windows", "mingw") then
+ return
+ end
local bindir = target:bindir()
local targetfile = path.join(bindir, target:filename())
- rpath_utils.remove_all(targetfile, {plat = target:plat(), arch = target:arch()})
+ rpath_utils.clean(targetfile, {plat = target:plat(), arch = target:arch()})
if target:policy("install.rpath") then
local result, sources = target:get_from("rpathdirs", "*")
if result and sources then