diff options
author | Sven Göthel <[email protected]> | 2024-08-09 02:04:21 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-08-09 02:04:21 +0200 |
commit | 16c57012a01f641b8d4d07860d9af2bc27225971 (patch) | |
tree | 20f3d6eeb50a9db5e165621c7d4fa4bfd89f1d09 /scripts/setup-emscripten.sh | |
parent | adc6a50ff46cb2dfea18c942e1fdd372a2f18888 (diff) |
Align to jaulib 1.3.3: Full cmake-presets usage w/ vscode support updatev0.0.2
Diffstat (limited to 'scripts/setup-emscripten.sh')
-rwxr-xr-x | scripts/setup-emscripten.sh | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/scripts/setup-emscripten.sh b/scripts/setup-emscripten.sh index 9cc9c75..85b6229 100755 --- a/scripts/setup-emscripten.sh +++ b/scripts/setup-emscripten.sh @@ -2,15 +2,25 @@ # set -x -emsdk_root=`readlink -f $HOME/emsdk` -echo "Using EMSDK ${emsdk_root}" -. ${emsdk_root}/emsdk_env.sh +if [ -z "$EMSDK" ] ; then + echo "WARNING: EMSDK unset, trying to use system-default with EM_CONFIG ~/.emscripten (not recommended)" + echo "WARNING: Consider installing emscripten upstream and setup environment via ~/emsdk/emsdk_env.sh" + export EM_CONFIG=$HOME/.emscripten +else + echo "INFO: EMSDK set (recommended), using it" +fi -# export EM_CONFIG=$HOME/.emscripten +# RECOMMENDED +# emsdk_root=`readlink -f $HOME/emsdk` +# echo "Using EMSDK ${emsdk_root}" +# . ${emsdk_root}/emsdk_env.sh -# -# emcc --generate-config -# emcc --clear-cache -# emcc --clear-ports +# NOT RECOMMENDED +# export EM_CONFIG=$HOME/.emscripten + +# Generate config, clear cach and/or ports +# emcc --generate-config +# emcc --clear-cache +# emcc --clear-ports # |