Cleanup emsdk_env scripts (#539)

Remove the optional argument to contruct_env.  It simple if we
always construct the env in the same place.  Avoid using temp files,
and avoid changing directory.
This commit is contained in:
Sam Clegg
2020-07-06 16:34:02 -07:00
committed by GitHub
parent 92d512faa8
commit 819e95cd99
6 changed files with 34 additions and 43 deletions

View File

@@ -6,12 +6,8 @@
set -l script (status -f)
set -l dir (dirname $script)
pushd $dir > /dev/null
./emsdk construct_env
. ./emsdk_set_env.sh
$dir/emsdk construct_env
. $dir/emsdk_set_env.sh
set -e -l script
set -e -l dir
popd > /dev/null