forked from qt-creator/qt-creator
ProjectExplorer: Replace to occurrences of FilePath::toString()
Otherwise every hosts named 'icecc' or 'cache' would interfere with the toolchain detection. Change-Id: I28e4b395f66d8c6dea4f0e54dab6b1a769764d15 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1655,8 +1655,8 @@ Toolchains GccToolchainFactory::autoDetectToolchains(const FilePaths &compilerPa
|
||||
if ((requiredTypeId == Constants::CLANG_TOOLCHAIN_TYPEID
|
||||
&& ((language == Constants::CXX_LANGUAGE_ID && !existingCommand.fileName().contains("clang++"))
|
||||
|| (language == Constants::C_LANGUAGE_ID && !existingCommand.baseName().endsWith("clang"))))
|
||||
|| compilerPath.toString().contains("icecc")
|
||||
|| compilerPath.toString().contains("ccache")) {
|
||||
|| compilerPath.path().contains("icecc")
|
||||
|| compilerPath.path().contains("ccache")) {
|
||||
existingTcMatches = existingCommand == compilerPath;
|
||||
} else {
|
||||
existingTcMatches = existingCommand.isSameExecutable(compilerPath);
|
||||
|
Reference in New Issue
Block a user