forked from qt-creator/qt-creator
Wasm: Only detect toolchains from the emsdk installation device
Change-Id: I910365c6e02e714adf1a233b42df86110cf65a0a Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -168,6 +168,13 @@ QList<ToolChain *> WebAssemblyToolChainFactory::autoDetect(
|
|||||||
if (!WebAssemblyEmSdk::isValid(sdk))
|
if (!WebAssemblyEmSdk::isValid(sdk))
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
if (device) {
|
||||||
|
// Only detect toolchains from the emsdk installation device
|
||||||
|
const FilePath deviceRoot = device->mapToGlobalPath({});
|
||||||
|
if (deviceRoot.host() != sdk.host())
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
Environment env = sdk.deviceEnvironment();
|
Environment env = sdk.deviceEnvironment();
|
||||||
WebAssemblyEmSdk::addToEnvironment(sdk, env);
|
WebAssemblyEmSdk::addToEnvironment(sdk, env);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user