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:
hjk
2024-09-27 15:22:57 +02:00
parent e4dfa36940
commit 887d2607eb

View File

@@ -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);