diff options
| author | SineStriker <[email protected]> | 2025-04-20 23:24:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 11:30:30 +0800 |
| commit | 93dda3ce130c3a71a3d8a7bb4776af6e82bcf1c5 (patch) | |
| tree | 492dfbb42f2c6d0f11e69624ee416ba7bf6e93ce /xmake/modules/target/action/clean/main.lua | |
| parent | 42be9d4228849def30a728b3933209a1cd90638e (diff) | |
Remove implib API
Diffstat (limited to 'xmake/modules/target/action/clean/main.lua')
| -rw-r--r-- | xmake/modules/target/action/clean/main.lua | 8 |
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 |
