File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,20 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
20
20
cd -P /proc/self/cwd
21
21
fi
22
22
23
+ TOOLCHAIN_ROOT=${EXT_BUILD_ROOT:- $PWD }
24
+
23
25
export NODE_JS=' '
24
- export EMSCRIPTEN_ROOT=' external/emscripten_toolchain'
26
+ export EMSCRIPTEN_ROOT=" ${TOOLCHAIN_ROOT} / external/emscripten_toolchain"
25
27
export SPIDERMONKEY_ENGINE=' '
26
28
export EM_EXCLUSIVE_CACHE_ACCESS=1
27
29
export EMCC_SKIP_SANITY_CHECK=1
28
30
export EMCC_WASM_BACKEND=1
29
31
30
- source external/emscripten_toolchain/emsdk_env.sh
32
+ # echo "$(pwd)/external/emscripten_toolchain/emsdk_env.sh"
33
+ # realpath "external/emscripten_toolchain/emsdk_env.sh"
34
+ source " ${EMSCRIPTEN_ROOT} /emsdk_env.sh"
31
35
32
36
# the emscripten sdk does some path comparison, so make EM_CACHE an absolute path to make it work.
33
- mkdir -p " tmp/emscripten_cache"
34
- export EM_CACHE=${PWD} " /tmp/emscripten_cache"
35
- export TEMP_DIR=" tmp"
37
+ mkdir -p " ${TOOLCHAIN_ROOT} / tmp/emscripten_cache"
38
+ export EM_CACHE=" ${TOOLCHAIN_ROOT} /tmp/emscripten_cache"
39
+ export TEMP_DIR=" ${TOOLCHAIN_ROOT} / tmp"
You can’t perform that action at this time.
0 commit comments