diff options
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/cflags.lua')
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/cflags.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/plugins/check/checkers/api/target/cflags.lua b/xmake/plugins/check/checkers/api/target/cflags.lua index df9a34830..db35a7bcf 100644 --- a/xmake/plugins/check/checkers/api/target/cflags.lua +++ b/xmake/plugins/check/checkers/api/target/cflags.lua @@ -22,12 +22,13 @@ import("core.tool.compiler") import(".api_checker") -function main() - api_checker.check_targets("cflags", {check = function(target, value) +function main(opt) + opt = opt or {} + api_checker.check_targets("cflags", table.join(opt, {check = function(target, value) local compinst = target:compiler("cc") if not compinst:has_flags(value) then return false, string.format("%s: unknown c compiler flag '%s'", compinst:name(), value) end return true - end}) + end})) end |
