summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/target/optimize.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/optimize.lua')
-rw-r--r--xmake/plugins/check/checkers/api/target/optimize.lua5
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