diff options
| author | ruki <[email protected]> | 2025-04-08 23:35:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 23:35:08 +0800 |
| commit | fd129538be29cabad2c2650f9b837ab1afc28a1e (patch) | |
| tree | 4ba5d484323946094db72f78d7c50bb322d7b62f | |
| parent | a6af349ad9ea7eb9f2d1eeea203d7a387b6e1bb9 (diff) | |
switch to 3.0
| -rw-r--r-- | core/xmake.lua | 2 | ||||
| -rwxr-xr-x | core/xmake.sh | 2 | ||||
| -rw-r--r-- | tests/test_utils/test_build.lua | 3 | ||||
| -rw-r--r-- | xmake/core/project/policy.lua | 2 |
4 files changed, 3 insertions, 6 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index 0ae9d016e..b59d18a51 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -2,7 +2,7 @@ set_project("xmake") -- version -set_version("2.9.9", {build = "%Y%m%d"}) +set_version("3.0.0", {build = "%Y%m%d"}) -- set xmake min version set_xmakever("2.8.5") diff --git a/core/xmake.sh b/core/xmake.sh index 486891b95..4befb583e 100755 --- a/core/xmake.sh +++ b/core/xmake.sh @@ -1,7 +1,7 @@ #!/bin/sh set_project "xmake" -set_version "2.9.9" "%Y%m%d" +set_version "3.0.0" "%Y%m%d" # set warning all set_warnings "all" diff --git a/tests/test_utils/test_build.lua b/tests/test_utils/test_build.lua index cc4111552..d32055c10 100644 --- a/tests/test_utils/test_build.lua +++ b/tests/test_utils/test_build.lua @@ -3,9 +3,6 @@ local test_build = {} function test_build:build(argv) os.exec("xmake f -c -D -y") os.exec("xmake") - os.rm("build") - os.exec("xmake f -c -D -y --policies=compatibility.version:3.0") - os.exec("xmake -r") end function main() diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua index 03053cb3e..c3754d540 100644 --- a/xmake/core/project/policy.lua +++ b/xmake/core/project/policy.lua @@ -164,7 +164,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", values = {"2.0", "3.0"}} + ["compatibility.version"] = {description = "Set the compatibility version", type = "string", default = "3.0", values = {"2.0", "3.0"}} } policy._POLICIES = policies end |
