From 86bcaa84dea7e8bbc6f61b14b33fc7c47fd47afd Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Dec 2021 09:37:49 +0800 Subject: Update windows.lua --- xmake/modules/target/action/uninstall/windows.lua | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.3.1