forked from qt-creator/qt-creator
Utils: Replace Environment::isSameExecutable()
... by FilePath::isSameExecutable(). The only non-mechanical case is the use inside QmakeBuildSystem::testToolChain using a build environment instead of the FilePath's device environment. This make a difference in theory due to the use of PATHEXT in the actual check, but I believe the case that someone creates a 'qmake.foo' and a 'qmake.bar', adds .foo and .bar to PATHEXT and then complains that there's a warning missing about not-matching mkspecs has zero likelihood in reality (and will break other places in Creator anyway). Change-Id: Id6a8d1e4dc2eb74ca81610ccb1c4ee94c6f47e12 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1395,9 +1395,7 @@ void QmakeBuildSystem::testToolChain(ToolChain *tc, const FilePath &path) const
|
||||
return;
|
||||
|
||||
const FilePath expected = tc->compilerCommand();
|
||||
Environment env = buildConfiguration()->environment();
|
||||
|
||||
if (tc->matchesCompilerCommand(expected, env))
|
||||
if (tc->matchesCompilerCommand(expected))
|
||||
return;
|
||||
const QPair<FilePath, FilePath> pair{expected, path};
|
||||
if (m_toolChainWarnings.contains(pair))
|
||||
|
||||
Reference in New Issue
Block a user