forked from qt-creator/qt-creator
Utils: Rename HostArchitecture enum
Since its not only good for the Host and to bring it in line with the OsType we rename HostArchitecture to OsArch. To make it work on all Platforms we change hostArchitecture to use QSysInfo instead of using Os specific calls. Change-Id: I1a9a4c8f9faa2a504694d8288110c9ee5c483440 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -549,7 +549,7 @@ void DebuggerItemModel::autoDetectCdbDebuggers()
|
||||
for (const QFileInfo &kitFolderFi : kitFolders) {
|
||||
const QString path = kitFolderFi.absoluteFilePath();
|
||||
QStringList abis = {"x86", "x64"};
|
||||
if (HostOsInfo::hostArchitecture() == HostOsInfo::HostArchitectureArm64)
|
||||
if (HostOsInfo::hostArchitecture() == Utils::OsArchArm64)
|
||||
abis << "arm64";
|
||||
for (const QString &abi: abis) {
|
||||
const QFileInfo cdbBinary(path + "/Debuggers/" + abi + "/cdb.exe");
|
||||
|
||||
Reference in New Issue
Block a user