forked from qt-creator/qt-creator
WebAssembly: Append EMSDK_PYTHON to environment PATH
The wrapper scripts of emscripten 1.39.8 (required version for Qt 5.15) do not actively use the python interpreter which -at least on Windows- is found under EMSDK_PYTHON. This change appends the parent path of EMSDK_PYTHON to the environment's PATH to make wrapper scripts (e.g. emcc.bat) work. Fixes: QTCREATORBUG-26199 Change-Id: Icbc89f6d930f1c5ac5e4e6ac919383cfdd1b913b Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -85,6 +85,11 @@ static void parseEmSdkEnvOutputAndAddToEnv(const QString &output, Environment &e
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// QTCREATORBUG-26199: Wrapper scripts (e.g. emcc.bat) of older emsdks might not find python
|
||||||
|
const QString emsdkPython = env.value("EMSDK_PYTHON");
|
||||||
|
if (!emsdkPython.isEmpty())
|
||||||
|
env.appendOrSetPath(FilePath::fromUserInput(emsdkPython).parentDir().toUserOutput());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebAssemblyEmSdk::isValid(const FilePath &sdkRoot)
|
bool WebAssemblyEmSdk::isValid(const FilePath &sdkRoot)
|
||||||
|
Reference in New Issue
Block a user