diff options
| author | ruki <[email protected]> | 2023-02-20 22:47:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-20 22:47:16 +0800 |
| commit | 2e04812cae7e38d9b097b40cce90b34ec6fb8fca (patch) | |
| tree | fc25c1fb5259908a3a6d4c6e97ca22a2361cb19a /xmake/plugins/check/checkers/api/target/ldflags.lua | |
| parent | 1ceae4d5e4b2786c395a705f7c89601e6ef8aedc (diff) | |
improve target checkers
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/ldflags.lua')
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/ldflags.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/plugins/check/checkers/api/target/ldflags.lua b/xmake/plugins/check/checkers/api/target/ldflags.lua index efe176aa5..e06d5bb09 100644 --- a/xmake/plugins/check/checkers/api/target/ldflags.lua +++ b/xmake/plugins/check/checkers/api/target/ldflags.lua @@ -22,8 +22,9 @@ import("core.tool.compiler") import(".api_checker") -function main() - api_checker.check_targets("ldflags", {check = function(target, value) +function main(opt) + opt = opt or {} + 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 @@ -31,5 +32,5 @@ function main() end end return true - end}) + end})) end |
