diff options
| author | ruki <[email protected]> | 2026-04-08 21:45:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-08 21:45:39 +0800 |
| commit | 895072e295a4d8f3a4565cf73a5a600fe3e416dd (patch) | |
| tree | b49cf8231f9a7a72d366f4c7c4110f3e862e3a05 /tests/projects/c++/modules/test_xmake_test.lua | |
| parent | 3a91a8b27ebc9d40656750615a3606e5fe971fc9 (diff) | |
| parent | 642adc138d7c3dee097328b27c327e5c34fccf00 (diff) | |
Merge pull request #7463 from xmake-io/modules
improve versions in c++ modules tests
Diffstat (limited to 'tests/projects/c++/modules/test_xmake_test.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_xmake_test.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/projects/c++/modules/test_xmake_test.lua b/tests/projects/c++/modules/test_xmake_test.lua index 2d0b0a2d1..f0a2c9872 100644 --- a/tests/projects/c++/modules/test_xmake_test.lua +++ b/tests/projects/c++/modules/test_xmake_test.lua @@ -1,10 +1,6 @@ inherit("test_base") import("utils.ci.is_running", {alias = "ci_is_running"}) -CLANG_MIN_VER = is_subhost("windows") and "19" or "17" -GCC_MIN_VER = "11" -MSVC_MIN_VER = "14.29" - function run_xmake_test(...) local flags = "" if ci_is_running() then @@ -15,8 +11,8 @@ function run_xmake_test(...) end function main(t) - local clang_options = {compiler = "clang", version = CLANG_MIN_VER, after_build = run_xmake_test} - local gcc_options = {compiler = "gcc", version = GCC_MIN_VER, after_build = run_xmake_test} - local msvc_options = {version = MSVC_MIN_VER, after_build = run_xmake_test} + local clang_options = {compiler = "clang", version = clang_min_ver(), after_build = run_xmake_test} + local gcc_options = {compiler = "gcc", version = gcc_min_ver(), after_build = run_xmake_test} + local msvc_options = {version = msvc_min_ver(), after_build = run_xmake_test} run_tests(clang_options, gcc_options, msvc_options) end |
