Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dfinity-lab/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
enzoh committed Feb 7, 2020
2 parents f935315 + 1704e4f commit 03a07e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c/adventure/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ wcc="clang-8 --target=wasm32 -c -O3"
tar xfz Adventure2.5.tar.gz
patch < adv.patch
(echo "char*textFile(){static char s[]=" ; cat adventure.text | sed 's/"/\\"/g' | sed 's/.*/"&\\n"/'; echo ";return s;}") > adventure.text.c
$wcc *.c
# Suppress warnings. The original source is old.
$wcc -Wno-everything *.c
$wld *.o -o adventure.wasm
echo '{"canisters":{"adventure":{"main":"src/adventure"}}}' > dfx.json
install -D adventure.wasm build/adventure/adventure.wasm
Expand Down

0 comments on commit 03a07e0

Please sign in to comment.