custom linker temporal workaround

This commit is contained in:
NikVolf
2017-05-04 21:34:41 +03:00
parent 2302f1c98e
commit f26c492a73
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ file=$1
if [ ${file: -3} == ".rs" ]
then
# Rust is compiled with rustc
rustc $file -o out/contract.js -O --target wasm32-unknown-emscripten
rustc $file -o out/contract.js -O --target wasm32-unknown-emscripten -C linker=./linker_emcc.sh
# Gas injector
cargo run --manifest-path=./../gas/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
args="$*"
filtered_args=${args/ERROR_ON_UNDEFINED_SYMBOLS\=1/ERROR_ON_UNDEFINED_SYMBOLS\=0}
emcc $filtered_args