summaryrefslogtreecommitdiff
path: root/xmake/modules/private/check/checkers/api/target/ldflags.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/check/checkers/api/target/ldflags.lua')
-rw-r--r--xmake/modules/private/check/checkers/api/target/ldflags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/check/checkers/api/target/ldflags.lua b/xmake/modules/private/check/checkers/api/target/ldflags.lua
index e06d5bb09..dae55226a 100644
--- a/xmake/modules/private/check/checkers/api/target/ldflags.lua
+++ b/xmake/modules/private/check/checkers/api/target/ldflags.lua
@@ -27,7 +27,7 @@ function main(opt)
api_checker.check_targets("ldflags", table.join(opt, {check = function(target, value)
if target:is_binary() then
local linker = target:linker()
- if not linker:has_flags(value) then
+ if not api_checker.check_flag(target, linker, "ldflags", value) then
return false, string.format("%s: unknown linker flag '%s'", linker:name(), value)
end
end