summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-02 22:36:50 +0800
committerruki <[email protected]>2022-09-05 20:17:04 +0800
commitf290b13a5601ec333b8018a70e3609954a8d22c1 (patch)
tree6c594f3c937a605da1b8855f1d5b86e0ddfd5a61
parentcfa0c527f0b86daaa906d93c499eceea7785ba0e (diff)
add version compatibility policy
-rw-r--r--xmake/core/project/policy.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index ef7851317..0509fcae8 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -70,7 +70,10 @@ function policy.policies()
-- use includes as external header files? e.g. -isystem ..
["package.include_external_headers"] = {description = "Use includes as external headers.", type = "boolean"},
-- inherit the configs from the external command arguments, e.g. toolchains, `xmake f --toolchain=`
- ["package.inherit_external_configs"] = {description = "Inherit the configs from the external command arguments.", default = true, type = "boolean"}
+ ["package.inherit_external_configs"] = {description = "Inherit the configs from the external command arguments.", default = true, type = "boolean"},
+ -- set version compatibility, if false, then new versions are always incompatible with older versions,
+ -- all packages that depend on it will generate a new buildhash, @see https://github.com/xmake-io/xmake/issues/2719
+ ["package.version_compatibility"] = {description = "Set package version compatibility.", default = true, type = "boolean"},
}
policy._POLICIES = policies
end