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:
3
emsdk_env.sh
Executable file → Normal file
3
emsdk_env.sh
Executable file → Normal 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
|
||||
|
||||
Reference in New Issue
Block a user