Skip to content

Commit

Permalink
TRYOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Leegwater Simões committed Dec 5, 2023
1 parent 1eab964 commit 1f7ad56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/c-example/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

BASEDIR=$(dirname "$0")

echo "Building C example contract..."

clang -nostdlib -Os \
--target=wasm64 \
-Wl,--allow-undefined \
Expand All @@ -11,3 +13,5 @@ clang -nostdlib -Os \
-Wl,--export=out_of_bounds \
"$BASEDIR/contract.c" \
-o "$BASEDIR/../../target/wasm64-unknown-unknown/release/c-example.wasm"

echo "End C example contract..."

0 comments on commit 1f7ad56

Please sign in to comment.