ProjectExplorer: Don't consider a host named icecc to be a compiler

Change-Id: Ie916d3477cc187707a908e8bcc01999c4fc6c7f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-09-05 12:02:18 +02:00
parent ffea46707e
commit cd0f917886

View File

@@ -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 // Get the path to the compiler, ignoring direct calls to icecc and distcc as we cannot
// do anything about those. // do anything about those.
if (!isNetworkCompiler(compilerPath.parentDir().toString())) if (!isNetworkCompiler(compilerPath.parentDir().path()))
return compilerPath; return compilerPath;
// Filter out network compilers // Filter out network compilers
const FilePaths pathComponents = Utils::filtered(env.path(), [] (const FilePath &dirPath) { 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: // This effectively searches the PATH twice, once via pathComponents and once via PATH itself: