diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-26 15:57:01 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-26 15:57:01 +0100 |
| commit | 3407ac95bcc1990dc03c8f5d86ec39295ce37c74 (patch) | |
| tree | bfda0955876244847df285391f4b4ae7702c8108 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 02fb7ef69e78a5d6a8e0066f8866684533836ac3 (diff) | |
fix c++ language detection for C++23 modules
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 2 |
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 |
