Skip to content

Commit 6b4d8aa

Browse files
authored
Emit load_addr and load_size if WAMR_ENABLE_COMPILER is set (#3835)
Currently, the open-source builds of wamrc set WASM_ENABLE_DUMP_CALL_STACK, which causes these two fields to be emitted. They are required by aot_emit_exception.c. Internally at Google, we don't enable call stack dumps, so we've been using the attached patch to make sure the fields are emitted anyway.
1 parent f9153fb commit 6b4d8aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/iwasm/interpreter/wasm.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,9 @@ struct WASMModule {
976976
uint64 buf_code_size;
977977
#endif
978978

979-
#if WASM_ENABLE_DEBUG_INTERP != 0 || WASM_ENABLE_FAST_JIT != 0 \
980-
|| WASM_ENABLE_DUMP_CALL_STACK != 0 || WASM_ENABLE_JIT != 0
979+
#if WASM_ENABLE_DEBUG_INTERP != 0 || WASM_ENABLE_FAST_JIT != 0 \
980+
|| WASM_ENABLE_DUMP_CALL_STACK != 0 || WASM_ENABLE_JIT != 0 \
981+
|| WASM_ENABLE_WAMR_COMPILER != 0
981982
uint8 *load_addr;
982983
uint64 load_size;
983984
#endif

0 commit comments

Comments
 (0)