diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-06 11:03:33 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-06 14:55:48 +0000 |
commit | fe31e5b0b091c51270aaffc6f0c12eb7439c8183 (patch) | |
tree | 15037c6c8ea06ad55067779754d03cb4ed9cbc8d | |
parent | f200926eb7c6e643bb6ab0b77c4ccc41f9c3b460 (diff) |
MSVC: Understand "c++20" as language version
Otherwise, this value will not result in the /std:c++latest flag.
Task-number: QBS-1656
Change-Id: I26c077e8200c2a3aff865327cb6c0569f7fdbaab
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r-- | share/qbs/modules/cpp/msvc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js index 3e528ddee..630272d37 100644 --- a/share/qbs/modules/cpp/msvc.js +++ b/share/qbs/modules/cpp/msvc.js @@ -108,7 +108,7 @@ function supportsExternalIncludesOption(input) { function addLanguageVersionFlag(input, args) { var cxxVersion = Cpp.languageVersion(input.cpp.cxxLanguageVersion, - ["c++17", "c++14", "c++11", "c++98"], "C++"); + ["c++20", "c++17", "c++14", "c++11", "c++98"], "C++"); if (!cxxVersion) return; |