diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-06-25 10:03:26 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-06-25 12:29:07 +0000 |
commit | e9e8852f50eabf95a9d8006aee3696ed86d9755d (patch) | |
tree | 4dfa42a2c29f7c1a8d4ce1d229a4bba4c5e77c29 /src/plugins/cpptools/compileroptionsbuilder.cpp | |
parent | 77f1a5963dca0f06da3975e0e883255d41e885c0 (diff) | |
download | qt-creator-e9e8852f50eabf95a9d8006aee3696ed86d9755d.tar.gz |
CppTools: Handle not only "-std=X" but also "--std=X"
Fixes: QTCREATORBUG-22444
Change-Id: Iedb0b17a26724d0cc8233a3bad273f3e6bd7462d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/compileroptionsbuilder.cpp')
-rw-r--r-- | src/plugins/cpptools/compileroptionsbuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/compileroptionsbuilder.cpp b/src/plugins/cpptools/compileroptionsbuilder.cpp index 7d12b33f05..c1cef62c6c 100644 --- a/src/plugins/cpptools/compileroptionsbuilder.cpp +++ b/src/plugins/cpptools/compileroptionsbuilder.cpp @@ -755,7 +755,7 @@ void CompilerOptionsBuilder::evaluateCompilerFlags() // Check whether a language version is already used. QString theOption = option; - if (theOption.startsWith("-std=")) { + if (theOption.startsWith("-std=") || theOption.startsWith("--std=")) { m_compilerFlags.isLanguageVersionSpecified = true; theOption.replace("=c18", "=c17"); theOption.replace("=gnu18", "=gnu17"); |