Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Sep 6, 2024
1 parent 97bd713 commit 641a4a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SRC += runtime/runtime.c \
SRC += $(BUILD)/wasm.c

ifeq ($(ARCH),xtensa)
SRC += runtime/esp8266-rom.S
SRC += runtime/esp8266-rom.S
endif

SRC_O = $(wildcard runtime/libgcc-$(ARCH)/*.o)
Expand All @@ -45,5 +45,5 @@ $(BUILD)/wasm.c: $(WASM)
$(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);//' $@
#$(Q)sed -i 's/MEMCHECK(mem, addr, t1);//' $@

2 changes: 1 addition & 1 deletion runtime/libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int strncmp(const char *_l, const char *_r, size_t n) {
}

void abort() {
mp_printf(&mp_plat_print, "Aborting");
mp_printf(&mp_plat_print, "Aborting\n");
for(;;) {} // Wait forever
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void os_print_last_error(const char* msg) {
}

void wasm_rt_trap_handler(wasm_rt_trap_t code) {
mp_printf(&mp_plat_print, "Trap: %d\n", code);
mp_printf(&mp_plat_print, "Trap: %s\n", wasm_rt_strerror(code));
abort();
}

Expand Down

0 comments on commit 641a4a0

Please sign in to comment.