summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-02 09:37:49 +0800
committerGitHub <[email protected]>2021-12-02 09:37:49 +0800
commit86bcaa84dea7e8bbc6f61b14b33fc7c47fd47afd (patch)
treeaa2fdfc58793bb1870f31237fc007df6a1d2a6fb
parentbac9526a3f5ed8a634edea456e22cb5e17e3eba9 (diff)
Update windows.lua
-rw-r--r--xmake/modules/target/action/uninstall/windows.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/target/action/uninstall/windows.lua b/xmake/modules/target/action/uninstall/windows.lua
index 73c43cc0a..ed6923567 100644
--- a/xmake/modules/target/action/uninstall/windows.lua
+++ b/xmake/modules/target/action/uninstall/windows.lua
@@ -56,6 +56,7 @@ function uninstall_binary(target, opt)
-- remove the target file
local binarydir = path.join(target:installdir(), opt and opt.bindir or "bin")
os.vrm(path.join(binarydir, path.filename(target:targetfile())))
+ os.tryrm(path.join(binarydir, path.filename(target:symbolfile())))
-- remove the dependent shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/961
@@ -76,6 +77,7 @@ function uninstall_shared(target, opt)
-- remove the target file
local binarydir = path.join(target:installdir(), opt and opt.bindir or "bin")
os.vrm(path.join(binarydir, path.filename(target:targetfile())))
+ os.tryrm(path.join(binarydir, path.filename(target:symbolfile())))
-- remove *.lib for shared/windows (*.dll) target
-- @see https://github.com/xmake-io/xmake/issues/714
@@ -96,6 +98,7 @@ function uninstall_static(target, opt)
-- remove the target file
local librarydir = path.join(target:installdir(), opt and opt.libdir or "lib")
os.vrm(path.join(librarydir, path.filename(target:targetfile())))
+ os.tryrm(path.join(librarydir, path.filename(target:symbolfile())))
-- remove headers from the include directory
_uninstall_headers(target, opt)