QbsProjectManager: Consider common compiler flags

... also for non-GCC and non-MSVC toolchains.

Task-number: QTCREATORBUG-24040
Change-Id: I4133c4dac8183012e1bc6fd8a037f75a50d3a166
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2024-06-13 17:42:40 +02:00
parent 9aeb396836
commit 9e4fc34e79

View File

@@ -798,6 +798,8 @@ static void getExpandedCompilerFlags(QStringList &cFlags, QStringList &cxxFlags,
cxxFlags << "/std:c++20"; cxxFlags << "/std:c++20";
else if (cxxLanguageVersion.contains("c++17")) else if (cxxLanguageVersion.contains("c++17"))
cxxFlags << "/std:c++17"; cxxFlags << "/std:c++17";
} else {
cFlags = cxxFlags = commonFlags;
} }
} }