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.
This commit is contained in:
James Ring 2024-10-07 18:28:24 -07:00 committed by GitHub
parent f9153fbff0
commit 6b4d8aae2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -976,8 +976,9 @@ struct WASMModule {
uint64 buf_code_size;
#endif
#if WASM_ENABLE_DEBUG_INTERP != 0 || WASM_ENABLE_FAST_JIT != 0 \
|| WASM_ENABLE_DUMP_CALL_STACK != 0 || WASM_ENABLE_JIT != 0
#if WASM_ENABLE_DEBUG_INTERP != 0 || WASM_ENABLE_FAST_JIT != 0 \
|| WASM_ENABLE_DUMP_CALL_STACK != 0 || WASM_ENABLE_JIT != 0 \
|| WASM_ENABLE_WAMR_COMPILER != 0
uint8 *load_addr;
uint64 load_size;
#endif