diff options
| author | ruki <[email protected]> | 2021-03-05 22:42:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-05 22:42:07 +0800 |
| commit | 1e293d3a5f31afed5e4f78670d66b5b18ccc2608 (patch) | |
| tree | 72ca0441699eb35457f59a302a0d35340fe5de16 /xmake/core/project/target.lua | |
| parent | 97e94809e0ffb871b2e8a7554ad3eb54a034c525 (diff) | |
add is_default
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 0c3287eee..22ffa5cf4 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -645,6 +645,11 @@ function _instance:is_phony() return not targetkind or targetkind == "phony" end +-- is binary target? +function _instance:is_binary() + return self:kind() == "binary" +end + -- is default target? function _instance:is_default() local default = self:get("default") |
