aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/travis-emscripten/build_emscripten.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/travis-emscripten/build_emscripten.sh b/scripts/travis-emscripten/build_emscripten.sh
index 9520a7e8..fd643429 100755
--- a/scripts/travis-emscripten/build_emscripten.sh
+++ b/scripts/travis-emscripten/build_emscripten.sh
@@ -43,7 +43,12 @@ fi
WORKSPACE=/root/project
# Increase nodejs stack size
-sed -i -e 's/NODE_JS="nodejs"/NODE_JS=["nodejs", "--stack_size=8192"]/' /root/.emscripten
+if [ -e ~/.emscripten ]
+then
+ sed -i -e 's/NODE_JS="nodejs"/NODE_JS=["nodejs", "--stack_size=8192"]/' ~/.emscripten
+else
+ echo 'NODE_JS=["nodejs", "--stack_size=8192"]' > ~/.emscripten
+fi
# Boost