forked from qt-creator/qt-creator
Clang: Unify compiler options builders
Make build command the same for all builders. Minimize differences. Change-Id: I1cfe5071b3afb4944ed178fff1e57d3aee45d8a9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -50,7 +50,7 @@ static bool isFileExecutable(const QString &executablePath)
|
||||
namespace ClangStaticAnalyzer {
|
||||
namespace Internal {
|
||||
|
||||
QString clangExecutableFromSettings(Core::Id toolchainType, bool *isValid)
|
||||
QString clangExecutableFromSettings(bool *isValid)
|
||||
{
|
||||
QString executable = ClangStaticAnalyzerSettings::instance()->clangExecutable();
|
||||
if (executable.isEmpty()) {
|
||||
@@ -62,14 +62,6 @@ QString clangExecutableFromSettings(Core::Id toolchainType, bool *isValid)
|
||||
const Qt::CaseSensitivity caseSensitivity = Utils::HostOsInfo::fileNameCaseSensitivity();
|
||||
const bool hasSuffix = executable.endsWith(hostExeSuffix, caseSensitivity);
|
||||
|
||||
if (toolchainType == ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID) {
|
||||
if (hasSuffix)
|
||||
executable.chop(hostExeSuffix.length());
|
||||
executable.append(QLatin1String("-cl"));
|
||||
if (hasSuffix)
|
||||
executable.append(hostExeSuffix);
|
||||
}
|
||||
|
||||
const QFileInfo fileInfo = QFileInfo(executable);
|
||||
if (fileInfo.isAbsolute()) {
|
||||
if (!hasSuffix)
|
||||
|
||||
Reference in New Issue
Block a user