forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user