diff options
| author | ruki <[email protected]> | 2022-12-27 08:52:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-27 08:52:54 +0800 |
| commit | cf8aa507a02dca136b1c7a67829a7d219e1981aa (patch) | |
| tree | b644a84e0dda6b0469c3fa4460c06003b6af4b84 | |
| parent | 808356219f6f13c1d80708b88679ce82527d32d5 (diff) | |
| parent | 3407ac95bcc1990dc03c8f5d86ec39295ce37c74 (diff) | |
Merge pull request #3212 from Arthapz/fix-cpp23-module-enabling-on-c++latest-flag
fix c++ language detection for C++23 modules
| -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 |
