From 642adc138d7c3dee097328b27c327e5c34fccf00 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 8 Apr 2026 00:46:54 +0800 Subject: improve versions in c++ modules tests --- tests/projects/c++/modules/test_xmake_test.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/projects/c++/modules/test_xmake_test.lua') 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 -- cgit v1.3.1