forked from qt-creator/qt-creator
Clang: Autodetect shipped clang binary as C++ compiler
We do not ship clang++ so it makes sense to detect clang not only as a C compiler. Change-Id: I37b95e38f253e6407fa27397815d9bcdbbd4a8e2 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -1331,12 +1331,12 @@ QList<ToolChain *> ClangToolChainFactory::autoDetect(const QList<ToolChain *> &a
|
||||
|
||||
const FileName compilerPath = FileName::fromString(Core::ICore::clangExecutable(CLANG_BINDIR));
|
||||
if (!compilerPath.isEmpty()) {
|
||||
tcs.append(autoDetectToolchains(compilerPath.parentDir().appendPath(
|
||||
HostOsInfo::withExecutableSuffix("clang++")),
|
||||
const FileName clang = compilerPath.parentDir().appendPath(
|
||||
HostOsInfo::withExecutableSuffix("clang"));
|
||||
tcs.append(autoDetectToolchains(clang,
|
||||
hostAbi, Constants::CXX_LANGUAGE_ID,
|
||||
Constants::CLANG_TOOLCHAIN_TYPEID, alreadyKnown));
|
||||
tcs.append(autoDetectToolchains(compilerPath.parentDir().appendPath(
|
||||
HostOsInfo::withExecutableSuffix("clang")),
|
||||
tcs.append(autoDetectToolchains(clang,
|
||||
hostAbi, Constants::C_LANGUAGE_ID,
|
||||
Constants::CLANG_TOOLCHAIN_TYPEID, alreadyKnown));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user