summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-12 00:38:46 +0800
committerruki <[email protected]>2020-12-12 00:38:46 +0800
commit2aefd7286550fd4e207c9a30cbe4b4d898700246 (patch)
treea9091c0f291c7d366745f0df7a1d2497d1a7229b
parent66dfd3513ac69d6a48bd10c61b82157ca1733dfb (diff)
improve uninstall
-rw-r--r--xmake/modules/target/action/uninstall/windows.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/target/action/uninstall/windows.lua b/xmake/modules/target/action/uninstall/windows.lua
index 2d686dacc..f783955bb 100644
--- a/xmake/modules/target/action/uninstall/windows.lua
+++ b/xmake/modules/target/action/uninstall/windows.lua
@@ -59,9 +59,10 @@ function uninstall_binary(target, opt)
-- remove the dependent shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/961
for _, dep in ipairs(target:orderdeps()) do
- if dep:targetkind() == "shared" and is_plat("windows", "mingw") then
+ if dep:targetkind() == "shared" then
os.vrm(path.join(binarydir, path.filename(dep:targetfile())))
end
+ _uninstall_shared_for_packages(dep, binarydir)
end
-- uninstall shared libraries for packages