From 3673eb319c9d6674d257cd13ca702d606d053e57 Mon Sep 17 00:00:00 2001 From: "Ying Ruei Liang (KK)" Date: Fri, 18 Dec 2015 17:35:01 +0800 Subject: [PATCH 1/2] Use https for url to prevent permission problem --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 59efaad3064..0d0d4921504 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "test/spec"] path = test/spec - url = git@github.com:WebAssembly/testsuite.git + url = https://github.com/WebAssembly/testsuite.git [submodule "test/experimental"] path = test/experimental - url = git@github.com:WebAssembly/experimental.git + url = https://github.com/WebAssembly/experimental.git From e6afdf3d6c679e7cf09ca31641dbfd8fc7dcc184 Mon Sep 17 00:00:00 2001 From: "Ying Ruei Liang (KK)" Date: Fri, 18 Dec 2015 17:50:08 +0800 Subject: [PATCH 2/2] Update git submodules while running build.sh --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3ce42fcb927..96995ca1275 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,7 @@ +echo "updating git submodules" +git submodule sync --quiet +git submodule init --quiet +git submodule update --quiet echo "building binaryen shell" g++ -O2 -std=c++11 src/binaryen-shell.cpp src/pass.cpp src/passes/*.cpp -o bin/binaryen-shell -Isrc/ -msse2 -mfpmath=sse # use sse for math, avoid x87, necessarily for proper float rounding on 32-bit echo "building asm2wasm" @@ -9,4 +13,3 @@ g++ -O2 -std=c++11 src/s2wasm-main.cpp -o bin/s2wasm echo "building interpreter/js" em++ -std=c++11 src/wasm-js.cpp src/emscripten-optimizer/parser.cpp src/emscripten-optimizer/simple_ast.cpp src/emscripten-optimizer/optimizer-shared.cpp -o bin/wasm.js -s MODULARIZE=1 -s 'EXPORT_NAME="WasmJS"' --memory-init-file 0 -Oz -s ALLOW_MEMORY_GROWTH=1 -profiling -s DEMANGLE_SUPPORT=1 #-DWASM_JS_DEBUG -DWASM_INTERPRETER_DEBUG=2 cat src/js/post.js >> bin/wasm.js -