diff options
Diffstat (limited to 'qtwasm_env.sh')
-rw-r--r-- | qtwasm_env.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/qtwasm_env.sh b/qtwasm_env.sh index 9521af45fb23..8b5a49e42ec4 100644 --- a/qtwasm_env.sh +++ b/qtwasm_env.sh @@ -1,3 +1,15 @@ -/opt/qt5-wasm/emsdk/emsdk activate EMSDKVER +#/opt/qt5-wasm/emsdk/emsdk activate EMSDKVER + +# load emsdk environment +# EM_CACHE issue: https://github.com/emscripten-core/emsdk/issues/535 +EM_CACHE_PATH=~/.cache/qt5-wasm +export EM_CACHE=$EM_CACHE_PATH source /opt/qt5-wasm/emsdk/emsdk_env.sh -export PATH=/opt/qt5-wasm/bin:$PATH +export EM_CACHE=$EM_CACHE_PATH +echo "EM_CACHE (override) = $EM_CACHE" + +# Export Qt5 WebAssembly bin Path +echo $PATH | grep -w "/opt/qt5-wasm/bin" > /dev/null +if [ $? -ne 0 ]; then + export PATH=/opt/qt5-wasm/bin:$PATH +fi |