Merge pull request #4124 from swankjesse/WAMR_BUILD_GC_HEAP_SIZE_DEFAULT

Expose WAMR_BUILD_GC_HEAP_SIZE_DEFAULT as a CMake option
This commit is contained in:
liang.he
2025-03-12 14:55:27 +08:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@ -757,7 +757,10 @@ wasm_runtime_full_init_internal(RuntimeInitArgs *init_args)
#endif
#if WASM_ENABLE_GC != 0
gc_heap_size_default = init_args->gc_heap_size;
uint32 gc_heap_size = init_args->gc_heap_size;
if (gc_heap_size > 0) {
gc_heap_size_default = gc_heap_size;
}
#endif
#if WASM_ENABLE_JIT != 0