wasm: Add actual emscripten installation to path in coin

I'm not sure where the emscripten-$version came from, maybe that's
how it used to be? In any case, in the current version (3.1.x),
the installation folder is in upstream/emscripten, so add PATH
there to access all emscripten utils.

Change-Id: I648feae21bc5caecc3f0bf0a7d16238680a85590
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
(cherry picked from commit 4a6f43ed8d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
David Skoland
2022-09-20 11:18:58 +02:00
committed by Qt Cherry-pick Bot
parent 43a8ea3bbd
commit 9fc871298c

View File

@@ -58,9 +58,12 @@ else
pathNodeExecutable="node-$versionNode-linux-x64/bin/node"
fi
SetEnvVar "PATH" "\"\$PATH:/opt/emsdk/emscripten-$version/\""
SetEnvVar "EMSCRIPTEN" "/opt/emsdk/emscripten-$version"
SetEnvVar "EMSDK" "/opt/emsdk"
SetEnvVar "EMSDK_NODE" "/opt/emsdk/$pathNodeExecutable"
emsdkPath="/opt/emsdk/"
emscriptenPath="${emsdkPath}upstream/emscripten/"
SetEnvVar "PATH" "\"\$PATH:${emscriptenPath}\""
SetEnvVar "EMSCRIPTEN" "${emscriptenPath}"
SetEnvVar "EMSDK" "${emsdkPath}"
SetEnvVar "EMSDK_NODE" "${emsdkPath}${pathNodeExecutable}"
echo "Emsdk = $version" >> ~/versions.txt