From 887d2607ebe96d24a1fb00a0f3264e8c9a852f6d Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 27 Sep 2024 15:22:57 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/gcctoolchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index ee11fe7a52a..508a80736ec 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -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);