Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
#endif

#define AOT_MAGIC_NUMBER 0x746f6100
#define AOT_CURRENT_VERSION 4
#define AOT_CURRENT_VERSION 5

#ifndef WASM_ENABLE_JIT
#define WASM_ENABLE_JIT 0
Expand Down
2 changes: 1 addition & 1 deletion core/iwasm/aot/aot_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -4415,7 +4415,7 @@ aot_compatible_version(uint32 version)
* refer to "AoT-compiled module compatibility among WAMR versions" in
* ./doc/biuld_wasm_app.md
*/
return version == 4 || version == 3;
return version == AOT_CURRENT_VERSION;
}

static bool
Expand Down
21 changes: 14 additions & 7 deletions doc/build_wasm_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,20 @@ However, there might be minor incompatibilities time to time.
For productions, we recommend to use compatible versions of
wamrc and the runtime.

| WAMR version | AOT_CURRENT_VERSION | Compatible AOT version |
| ------------ | ------------------- | ---------------------- |
| 1.x | 3 | 3 |
| 2.0.0 | 3 | 3 |
| 2.1.x | 3 | 3 |
| 2.2.0 | 3 | 3 |
| next | 4 | 3,4 |
| WAMR version | AOT_CURRENT_VERSION | Compatible AOT version | |
| ------------ | ------------------- | ---------------------- | ---------------------- |
| 1.x | 3 | 3 | |
| 2.0.0 | 3 | 3 | |
| 2.1.x | 3 | 3 | |
| 2.2.0 | 3 | 3 | |
| 2.3.0 | 4 | 3,4 | |
| 2.4.0 | 4 | 3,4 | See the following note |
| 2.4.1 | 5 | 5 | |

Note: 2.4.0 had a broken AoT versioning. See [issue 4504] for details.
We recommend all 2.4.0 users to migrate to 2.4.1.

[issue 4504]: https://github.com/bytecodealliance/wasm-micro-runtime/issues/4504

## AoT compilation with 3rd-party toolchains

Expand Down
2 changes: 1 addition & 1 deletion test-tools/aot-analyzer/include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define WASM_CURRENT_VERSION 1

#define AOT_MAGIC_NUMBER 0x746f6100
#define AOT_CURRENT_VERSION 4
#define AOT_CURRENT_VERSION 5

/* Legal values for bin_type */
#define BIN_TYPE_ELF32L 0 /* 32-bit little endian */
Expand Down
Loading