summaryrefslogtreecommitdiff
path: root/xmake/actions/clean/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-09 14:18:42 +0800
committerruki <[email protected]>2017-04-09 14:18:42 +0800
commit23ffe01a0b47f0d9e827c3cb6e0c57749a9ac0de (patch)
tree70dd683530a456de69b2a291c217f7d429f9826a /xmake/actions/clean/main.lua
parent75ce1622c65240df4017b79d123f64cb6ae8d4c8 (diff)
support not kind
Diffstat (limited to 'xmake/actions/clean/main.lua')
-rw-r--r--xmake/actions/clean/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua
index eb5f85cab..37e7d0788 100644
--- a/xmake/actions/clean/main.lua
+++ b/xmake/actions/clean/main.lua
@@ -51,6 +51,11 @@ end
-- on clean target
function _on_clean_target(target)
+ -- no target kind?
+ if not target:targetkind() then
+ return
+ end
+
-- remove the target file
_remove(target:targetfile())