diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-06-30 15:11:15 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-07-10 11:52:24 +0000 |
commit | d400dce35d817afd719ffadf8c8f43c8814c05c1 (patch) | |
tree | bbc56cd3c009e023a8f35c1c8cd935d979540eaa /qbs | |
parent | e210bcf3eb2135792edd40f1b0cac1cf113fe1ef (diff) |
Require GCC 7 and enable C++17
Fix MSVC2019
- result type of conditional expression is ambiguous:
types 'const char [1]' and 'QByteArray' can be converted
to multiple common types
Fix MinGW 8.1
- undefined reference to SemanticHighlightNotification::methodName
Fix Utils::transform with std::vector for GCC & MSVC
Unfortunately we cannot get rid of the special variant and optional
implementations, because Apple Clang requires deployment target >= 10.14
for the functions that can throw std::bad_optional_access.
Fixes: QTCREATORBUG-20520
Change-Id: I5c36a70f21f8b0215d2f4fc5c0653a022778d928
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'qbs')
-rw-r--r-- | qbs/imports/QtcProduct.qbs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qbs/imports/QtcProduct.qbs b/qbs/imports/QtcProduct.qbs index be3653ffe0..c6d1a26e90 100644 --- a/qbs/imports/QtcProduct.qbs +++ b/qbs/imports/QtcProduct.qbs @@ -52,7 +52,7 @@ Product { return flags; } - cpp.cxxLanguageVersion: "c++14" + cpp.cxxLanguageVersion: "c++17" cpp.defines: qtc.generalDefines cpp.minimumWindowsVersion: "6.1" cpp.useCxxPrecompiledHeader: useNonGuiPchFile || useGuiPchFile |