bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.98k stars 627 forks source link

Refactor AOT loader to support compatible versions #3891

Closed lum1n0us closed 3 weeks ago

lum1n0us commented 4 weeks ago

This commit refactors the AOT loader in aot_loader.c to support compatible versions of the AOT_CURRENT_VERSION constant. Previously, the loader only accepted the exact AOT_CURRENT_VERSION value, but now it also accepts version 3. This change ensures that the runtime can load modules AoT-compiled with different versions of wamrc as long as they have compatible AOT_CURRENT_VERSION values.

Related to #3880

TianlongLiang commented 3 weeks ago

LGTM