From 2aefd7286550fd4e207c9a30cbe4b4d898700246 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 12 Dec 2020 00:38:46 +0800 Subject: improve uninstall --- xmake/modules/target/action/uninstall/windows.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1