From cd0f917886714e08df99de9defc405ced8688166 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 5 Sep 2023 12:02:18 +0200 Subject: [PATCH] ProjectExplorer: Don't consider a host named icecc to be a compiler Change-Id: Ie916d3477cc187707a908e8bcc01999c4fc6c7f6 Reviewed-by: 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 6794234e820..96a55122a81 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -436,12 +436,12 @@ static Utils::FilePath findLocalCompiler(const Utils::FilePath &compilerPath, // Get the path to the compiler, ignoring direct calls to icecc and distcc as we cannot // do anything about those. - if (!isNetworkCompiler(compilerPath.parentDir().toString())) + if (!isNetworkCompiler(compilerPath.parentDir().path())) return compilerPath; // Filter out network compilers const FilePaths pathComponents = Utils::filtered(env.path(), [] (const FilePath &dirPath) { - return !isNetworkCompiler(dirPath.toString()); + return !isNetworkCompiler(dirPath.path()); }); // This effectively searches the PATH twice, once via pathComponents and once via PATH itself: