Skip to content

Commit

Permalink
Remove memchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Aug 29, 2024
1 parent a48f1da commit 276ab0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WASM ?= test/$(APP).wasm

include $(MPY_DIR)/py/dynruntime.mk

CFLAGS += -Iruntime -I$(BUILD) -Wno-unused-value -Wno-unused-function \
CFLAGS += -Os -Iruntime -I$(BUILD) -Wno-unused-value -Wno-unused-function \
-Wno-unused-variable -Wno-unused-but-set-variable

LIBGCC = $(realpath $(shell $(CROSS)gcc $(CFLAGS) --print-libgcc-file-name))
Expand All @@ -40,3 +40,6 @@ $(BUILD)/wasm.c: $(WASM)
$(ECHO) "W2C $<"
$(Q)wasm2c -o $@ --no-debug-names --module-name="wasm" $<
$(Q)sed -i 's/#if defined(__GNUC__) || defined(__clang__)/#if 0/' $@
# Remove memchecks, assuming we trust the module
$(Q)sed -i 's/MEMCHECK(mem, addr, t1);//' $@

0 comments on commit 276ab0a

Please sign in to comment.