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_duplicate_modules.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_duplicate_modules.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_duplicate_modules.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/projects/c++/modules/test_duplicate_modules.lua b/tests/projects/c++/modules/test_duplicate_modules.lua index 98a27d739..7d66c3a8a 100644 --- a/tests/projects/c++/modules/test_duplicate_modules.lua +++ b/tests/projects/c++/modules/test_duplicate_modules.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 _build() local flags = "" if ci_is_running() then @@ -26,8 +22,8 @@ function _build() end function main(_) - local clang_options = {compiler = "clang", version = CLANG_MIN_VER, build = _build} - local gcc_options = {compiler = "gcc", version = GCC_MIN_VER, build = _build} - local msvc_options = {version = MSVC_MIN_VER, build = _build} + local clang_options = {compiler = "clang", version = clang_min_ver(), build = _build} + local gcc_options = {compiler = "gcc", version = gcc_min_ver(), build = _build} + local msvc_options = {version = msvc_min_ver(), build = _build} run_tests(clang_options, gcc_options, msvc_options) end |
