summaryrefslogtreecommitdiff
path: root/xmake/modules/target/action/clean/main.lua
diff options
context:
space:
mode:
authorSineStriker <[email protected]>2025-04-20 23:24:47 +0800
committerruki <[email protected]>2025-04-23 11:30:30 +0800
commit93dda3ce130c3a71a3d8a7bb4776af6e82bcf1c5 (patch)
tree492dfbb42f2c6d0f11e69624ee416ba7bf6e93ce /xmake/modules/target/action/clean/main.lua
parent42be9d4228849def30a728b3933209a1cd90638e (diff)
Remove implib API
Diffstat (limited to 'xmake/modules/target/action/clean/main.lua')
-rw-r--r--xmake/modules/target/action/clean/main.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua
index 8806ed483..b919c4d63 100644
--- a/xmake/modules/target/action/clean/main.lua
+++ b/xmake/modules/target/action/clean/main.lua
@@ -45,9 +45,11 @@ function main(target)
end
end
- local implibfile = target:implibfile()
- if implibfile and os.isfile(implibfile) then
- remove_files(implibfile)
+ if target:has_implib() then
+ local libfile = target:artifactfile("lib")
+ if os.isfile(libfile) then
+ remove_files(libfile)
+ end
end
end