summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/test_headerunits.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-04-09 00:42:21 +0800
committerruki <[email protected]>2026-04-09 00:42:21 +0800
commit955c76bd53bbb6630a92efba54dcee261019985f (patch)
tree3e728ce65b77fdeb2ca7d5c940a19f09e79bac82 /tests/projects/c++/modules/test_headerunits.lua
parent895072e295a4d8f3a4565cf73a5a600fe3e416dd (diff)
update module versions again
Diffstat (limited to 'tests/projects/c++/modules/test_headerunits.lua')
-rw-r--r--tests/projects/c++/modules/test_headerunits.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua
index e3bf83f83..a63f254d5 100644
--- a/tests/projects/c++/modules/test_headerunits.lua
+++ b/tests/projects/c++/modules/test_headerunits.lua
@@ -1,6 +1,10 @@
inherit("test_base")
-local MSVC_MIN_VER = "14.30"
+local _MSVC_MIN_VER = "14.30"
+
+function msvc_min_ver()
+ return _MSVC_MIN_VER
+end
function main(t)
local gcc_options = {fallbackscanner = true, compiler = "gcc", version = gcc_min_ver()}
@@ -9,7 +13,7 @@ function main(t)
if os.arch() == "arm64" or is_subhost("msys") then
gcc_options = nil
end
- local msvc_options = {version = MSVC_MIN_VER}
+ local msvc_options = {version = msvc_min_ver()}
-- skip clang tests, headerunits with clang is not stable
run_tests(nil, gcc_options, msvc_options)
end