forked from qt-creator/qt-creator
QMake: Use FilePath for sysroot
Less roundtrips. Change-Id: I0f98629398170f5d1d4ccd60cfaa0d54f8e2b9f3 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1301,7 +1301,7 @@ QmakeEvalInput QmakeProFile::evalInput() const
|
||||
input.projectDir = directoryPath().toFSPathString();
|
||||
input.projectFilePath = filePath();
|
||||
input.buildDirectory = m_buildSystem->buildDir(m_filePath);
|
||||
input.sysroot = FilePath::fromString(m_buildSystem->qmakeSysroot());
|
||||
input.sysroot = m_buildSystem->qmakeSysroot();
|
||||
input.readerExact = m_readerExact;
|
||||
input.readerCumulative = m_readerCumulative;
|
||||
input.qmakeGlobals = m_buildSystem->qmakeGlobals();
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class BuildConfiguration;
|
||||
class ExtraCompilerFactory;
|
||||
} // ProjectExplorer
|
||||
namespace ProjectExplorer { class ExtraCompilerFactory; }
|
||||
|
||||
namespace Utils {
|
||||
class FilePath;
|
||||
|
||||
@@ -851,7 +851,7 @@ QtSupport::ProFileReader *QmakeBuildSystem::createProFileReader(const QmakeProFi
|
||||
qmakeArgs = bc->configCommandLineArguments();
|
||||
|
||||
QtSupport::QtVersion *qtVersion = QtSupport::QtKitAspect::qtVersion(k);
|
||||
m_qmakeSysroot = SysRootKitAspect::sysRoot(k).toString();
|
||||
m_qmakeSysroot = SysRootKitAspect::sysRoot(k);
|
||||
|
||||
if (qtVersion && qtVersion->isValid()) {
|
||||
m_qmakeGlobals->qmake_abslocation =
|
||||
@@ -905,7 +905,7 @@ QMakeVfs *QmakeBuildSystem::qmakeVfs()
|
||||
return m_qmakeVfs;
|
||||
}
|
||||
|
||||
QString QmakeBuildSystem::qmakeSysroot()
|
||||
const FilePath &QmakeBuildSystem::qmakeSysroot()
|
||||
{
|
||||
return m_qmakeSysroot;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
/// \internal
|
||||
QMakeVfs *qmakeVfs();
|
||||
/// \internal
|
||||
QString qmakeSysroot();
|
||||
const Utils::FilePath &qmakeSysroot();
|
||||
/// \internal
|
||||
void destroyProFileReader(QtSupport::ProFileReader *reader);
|
||||
void deregisterFromCacheManager();
|
||||
@@ -177,7 +177,7 @@ private:
|
||||
int m_qmakeGlobalsRefCnt = 0;
|
||||
bool m_invalidateQmakeVfsContents = false;
|
||||
|
||||
QString m_qmakeSysroot;
|
||||
Utils::FilePath m_qmakeSysroot;
|
||||
|
||||
std::unique_ptr<QFutureInterface<void>> m_asyncUpdateFutureInterface;
|
||||
int m_pendingEvaluateFuturesCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user