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.fish Executable file → Normal file
View File

@@ -6,8 +6,7 @@
set -l script (status -f)
set -l dir (dirname $script)
$dir/emsdk construct_env
. $dir/emsdk_set_env.sh
eval ($dir/emsdk construct_env)
set -e -l script
set -e -l dir