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/optimize.lua | |
| parent | 1ceae4d5e4b2786c395a705f7c89601e6ef8aedc (diff) | |
improve target checkers
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/optimize.lua')
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/optimize.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/check/checkers/api/target/optimize.lua b/xmake/plugins/check/checkers/api/target/optimize.lua index c8bc6eb60..99731ba19 100644 --- a/xmake/plugins/check/checkers/api/target/optimize.lua +++ b/xmake/plugins/check/checkers/api/target/optimize.lua @@ -21,6 +21,7 @@ -- imports import(".api_checker") -function main() - api_checker.check_targets("optimize", {values = {"none", "fast", "faster", "fastest", "smallest", "aggressive"}}) +function main(opt) + opt = opt or {} + api_checker.check_targets("optimize", table.join(opt, {values = {"none", "fast", "faster", "fastest", "smallest", "aggressive"}})) end |
