forked from qt-creator/qt-creator
ProjectExplorer: Run toolchain autodetection on startup
... explicitly only for the Desktop device. This was implicitly done in some cases by assuming 'no device' == 'desktop'. Make that explicit now. Change-Id: I2ce86702a9b5b795fb4832301a11a8c8b40e77ea Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -96,7 +96,7 @@ static Toolchains doAutoDetect(const ToolchainDetector &detector)
|
||||
if (!WebAssemblyEmSdk::isValid(sdk))
|
||||
return {};
|
||||
|
||||
if (detector.device) {
|
||||
if (detector.device->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
|
||||
// Only detect toolchains from the emsdk installation device
|
||||
const FilePath deviceRoot = detector.device->rootPath();
|
||||
if (deviceRoot.host() != sdk.host())
|
||||
|
||||
Reference in New Issue
Block a user