forked from qt-creator/qt-creator
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user