mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-13 01:11:06 +00:00
custom linker temporal workaround
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
args="$*"
|
||||
filtered_args=${args/ERROR_ON_UNDEFINED_SYMBOLS\=1/ERROR_ON_UNDEFINED_SYMBOLS\=0}
|
||||
emcc $filtered_args
|
||||
Reference in New Issue
Block a user