summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-16 22:45:21 +0800
committerruki <[email protected]>2024-09-16 22:45:21 +0800
commitb61bb48dd89bfa135cdcf7399add04ee04c05267 (patch)
treea42131a6f2af418de375c975b46818a8604842d3
parentef52fd5ca12201966f533c92aa58a4fe1ad441f6 (diff)
limit policy values
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index cd842d2b9..9390d336e 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -153,7 +153,7 @@ function policy.policies()
-- private: it will disable fetch remote package repositories
["network.mode"] = {description = "Set the network mode", type = "string"},
-- Set the compatibility version, e.g. 2.0, 3.0
- ["compatibility.version"] = {description = "Set the compatibility version", type = "string"}
+ ["compatibility.version"] = {description = "Set the compatibility version", type = "string", values = {"2.0", "3.0"}}
}
policy._POLICIES = policies
end