From f6c7234e3925a91e0cbbb3b2c58be159a7422113 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 16 May 2023 21:40:43 +0200 Subject: [PATCH] examples/wasm/wasm_sample: revert prebuild WASM Running `make` in the wasm example modifies the `hello_prebuild.wasm` example, making it easy to sneak in unwanted changes. This reverts such an instance and modifies the Makefile to only recreate/update `hello_prebuild.wasm` with: make hello_prebuild.wasm --- examples/wasm/wasm_sample/Makefile | 2 ++ examples/wasm/wasm_sample/hello_prebuild.wasm | Bin 276 -> 242 bytes 2 files changed, 2 insertions(+) diff --git a/examples/wasm/wasm_sample/Makefile b/examples/wasm/wasm_sample/Makefile index dec2b46e4e..e3aa70cb4d 100644 --- a/examples/wasm/wasm_sample/Makefile +++ b/examples/wasm/wasm_sample/Makefile @@ -104,6 +104,8 @@ COMPILE_FLAGS := -Wall \ %.wat: %.wasm Makefile wasm2wat -o $@ $< +hello.wasm: + ifeq ($(COPY_HELLO),YES) hello.wasm: hello_prebuild.wasm @echo "!! NO wasm-ld(-VERSION) found !!" diff --git a/examples/wasm/wasm_sample/hello_prebuild.wasm b/examples/wasm/wasm_sample/hello_prebuild.wasm index f50894b0782fa07e75fd9808cd30847ddb87a0fa..78a35e794eea8234f0d58f41236870c21bbd2a2a 100755 GIT binary patch delta 92 zcmbQj^oemoRZt9L6eCl;asv=BI0|GdF{wb94IMxMMP?=k1qMeZ4_*cZMhzwwMP_aV iCdZ5XW=t#!ObX0qObm{#Aax2%0$^QIKv{u_@6-S~;uYBd delta 137 zcmeywIE86KRec>}4I^W{asv=BI4Wc-F{yx=Ob$#A3Ji`+9=r?+j2cWViVO-&ju-jO zm{=5;6d25y7#v$WfI1YI1i;Frco?~%3PgZ(14zz{NdTtEQ6LMd4x~yU3u1@k5@GI% G*QEi~pdnTO