diff options
| author | SineStriker <[email protected]> | 2025-04-20 05:07:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 11:30:30 +0800 |
| commit | d57cceb19f58b99d5198cea0c32ec306ea22a9fb (patch) | |
| tree | 74f5b5cd3f707887b35fea49e6621dd1ee5b34d7 /xmake/modules/target/action/clean/main.lua | |
| parent | cef17b4c566a186ba8e9dd3dc52ab44901fed9f1 (diff) | |
Add `set_implibdir` to target APIs
Diffstat (limited to 'xmake/modules/target/action/clean/main.lua')
| -rw-r--r-- | xmake/modules/target/action/clean/main.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua index 911fbe17e..98773a9ab 100644 --- a/xmake/modules/target/action/clean/main.lua +++ b/xmake/modules/target/action/clean/main.lua @@ -40,16 +40,14 @@ function main(target) if target:is_shared() then if target:is_plat("windows") then local expfile = path.join(target:implibdir(), path.basename(targetfile) .. ".exp") - local libfile = path.join(target:implibdir(), path.basename(targetfile) .. ".lib") if os.isfile(expfile) then - remove_files(libfile) remove_files(expfile) end - elseif target:is_plat("mingw") then - local libfile = path.join(target:implibdir(), path.basename(targetfile) .. ".dll.a") - if os.isfile(libfile) then - remove_files(libfile) - end + end + + local implibfile = target:implibfile() + if implibfile and os.isfile(implibfile) then + remove_files(implibfile) end end |
