From 3407ac95bcc1990dc03c8f5d86ec39295ce37c74 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 26 Dec 2022 15:57:01 +0100 Subject: fix c++ language detection for C++23 modules --- xmake/rules/c++/modules/modules_support/msvc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/c++/modules/modules_support') 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 -- cgit v1.3.1