summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-11 23:30:35 +0800
committerruki <[email protected]>2021-01-11 23:30:35 +0800
commit0716e54e663f5e6a6400efd1576bdc89c86701d3 (patch)
tree0b0a3a95c5ceba59a8d48bbca422559b4366d0d4
parent49febf7add0f54c3edd06f790ffa5cdab453731c (diff)
fix object kind
-rw-r--r--xmake/actions/build/build.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/actions/build/build.lua b/xmake/actions/build/build.lua
index a5df6dec7..ea828c8d1 100644
--- a/xmake/actions/build/build.lua
+++ b/xmake/actions/build/build.lua
@@ -28,7 +28,8 @@ import("core.base.hashset")
-- clean target for rebuilding
function _clean_target(target)
- if not target:isphony() then
+ local targetkind = target:targetkind()
+ if targetkind ~= "phony" and targetkind ~= "object" then
os.tryrm(target:symbolfile())
os.tryrm(target:targetfile())
end