Avoid writing to file in emsdk_env.csh / emsdk_env.sh (#544)

This is an alternative fix for
https://github.com/emscripten-core/emscripten/issues/9090 which recently
came up again after #539.

Tested with bash, tcsh and fish.
This commit is contained in:
Sam Clegg
2020-07-10 17:49:16 -07:00
committed by GitHub
parent 833dfddcdc
commit d37abed2de
5 changed files with 35 additions and 43 deletions

3
emsdk_env.sh Executable file → Normal file
View File

@@ -22,6 +22,5 @@ fi
DIR="$(dirname "$DIR")"
# Force emsdk to use bash syntax so that this works in windows + bash too
EMSDK_BASH=1 $DIR/emsdk construct_env
. $DIR/emsdk_set_env.sh
eval `EMSDK_BASH=1 $DIR/emsdk construct_env`
unset DIR