summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 8154742dd..c90c8038e 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -144,7 +144,7 @@ function load(target)
if language:startswith("c++") or language:startswith("cxx") then
isatleastcpp23 = true
local version = tonumber(language:match("%d+"))
- if not version or version <= 20 then
+ if (not version or version <= 20) and not language:match("latest") then
isatleastcpp23 = false
break
end