summaryrefslogtreecommitdiff
path: root/xmake/modules/private/check/checkers/api/target/asflags.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/check/checkers/api/target/asflags.lua')
-rw-r--r--xmake/modules/private/check/checkers/api/target/asflags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/check/checkers/api/target/asflags.lua b/xmake/modules/private/check/checkers/api/target/asflags.lua
index 07de9c4ec..94e30c95f 100644
--- a/xmake/modules/private/check/checkers/api/target/asflags.lua
+++ b/xmake/modules/private/check/checkers/api/target/asflags.lua
@@ -26,7 +26,7 @@ function main(opt)
opt = opt or {}
api_checker.check_targets("asflags", table.join(opt, {check = function(target, value)
local compinst = target:compiler("as")
- if not compinst:has_flags(value) then
+ if not api_checker.check_flag(target, compinst, "asflags", value) then
return false, string.format("%s: unknown assembler flag '%s'", compinst:name(), value)
end
return true