summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/clang/compile_flags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-05 22:41:06 +0800
committerruki <[email protected]>2021-03-05 22:41:06 +0800
commit97e94809e0ffb871b2e8a7554ad3eb54a034c525 (patch)
tree1f81d3047ff4b7cf615df5dacd044d606fadd5b8 /xmake/plugins/project/clang/compile_flags.lua
parentecb7b50da9471f2ebc5d44d01c72e7860776e2c9 (diff)
add is_enabled
Diffstat (limited to 'xmake/plugins/project/clang/compile_flags.lua')
-rw-r--r--xmake/plugins/project/clang/compile_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_flags.lua b/xmake/plugins/project/clang/compile_flags.lua
index 9662943e3..f85ed631b 100644
--- a/xmake/plugins/project/clang/compile_flags.lua
+++ b/xmake/plugins/project/clang/compile_flags.lua
@@ -78,7 +78,7 @@ function _make_all()
_g.firstline = true
for _, target in pairs(project.targets()) do
local isdefault = target:get("default")
- if not target:isphony() and (isdefault == nil or isdefault == true) then
+ if not target:is_phony() and (isdefault == nil or isdefault == true) then
_make_target(target)
end
end