summaryrefslogtreecommitdiff
path: root/xmake/modules/target/action/clean/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-23 22:50:52 +0800
committerruki <[email protected]>2025-04-23 11:30:31 +0800
commit09742602185c22140f754e6f734e8bdfc98100df (patch)
tree4ea844f1cb00b62c21cce2e8a432f1e32333334b /xmake/modules/target/action/clean/main.lua
parentcc227f968825b85ea3266a57f1d68709cbb890c7 (diff)
rename implib name
Diffstat (limited to 'xmake/modules/target/action/clean/main.lua')
-rw-r--r--xmake/modules/target/action/clean/main.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua
index ed7aeaafb..33ed3c314 100644
--- a/xmake/modules/target/action/clean/main.lua
+++ b/xmake/modules/target/action/clean/main.lua
@@ -39,10 +39,10 @@ function main(target)
-- @see https://github.com/xmake-io/xmake/issues/3052
if target:is_shared() then
if target:is_plat("windows") then
- local libfile = target:artifactfile("implib")
- local expfile = path.join(path.directory(libfile), path.basename(targetfile) .. ".exp")
- if os.isfile(libfile) then
- remove_files(libfile)
+ local implibfile = target:artifactfile("implib")
+ local expfile = path.join(path.directory(implibfile), path.basename(targetfile) .. ".exp")
+ if os.isfile(implibfile) then
+ remove_files(implibfile)
end
if os.isfile(expfile) then
remove_files(expfile)
@@ -50,9 +50,9 @@ function main(target)
end
if target:is_plat("mingw") then
- local libfile = target:artifactfile("implib")
- if os.isfile(libfile) then
- remove_files(libfile)
+ local implibfile = target:artifactfile("implib")
+ if os.isfile(implibfile) then
+ remove_files(implibfile)
end
end
end