Skip to content

Commit d298a66

Browse files
authored
bump AOT_CURRENT_VERSION for extended-const (#4511)
cf. #4504
1 parent 121232a commit d298a66

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

core/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
#endif
8585

8686
#define AOT_MAGIC_NUMBER 0x746f6100
87-
#define AOT_CURRENT_VERSION 4
87+
#define AOT_CURRENT_VERSION 5
8888

8989
#ifndef WASM_ENABLE_JIT
9090
#define WASM_ENABLE_JIT 0

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4415,7 +4415,7 @@ aot_compatible_version(uint32 version)
44154415
* refer to "AoT-compiled module compatibility among WAMR versions" in
44164416
* ./doc/biuld_wasm_app.md
44174417
*/
4418-
return version == 4 || version == 3;
4418+
return version == AOT_CURRENT_VERSION;
44194419
}
44204420

44214421
static bool

doc/build_wasm_app.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,20 @@ However, there might be minor incompatibilities time to time.
386386
For productions, we recommend to use compatible versions of
387387
wamrc and the runtime.
388388
389-
| WAMR version | AOT_CURRENT_VERSION | Compatible AOT version |
390-
| ------------ | ------------------- | ---------------------- |
391-
| 1.x | 3 | 3 |
392-
| 2.0.0 | 3 | 3 |
393-
| 2.1.x | 3 | 3 |
394-
| 2.2.0 | 3 | 3 |
395-
| next | 4 | 3,4 |
389+
| WAMR version | AOT_CURRENT_VERSION | Compatible AOT version | |
390+
| ------------ | ------------------- | ---------------------- | ---------------------- |
391+
| 1.x | 3 | 3 | |
392+
| 2.0.0 | 3 | 3 | |
393+
| 2.1.x | 3 | 3 | |
394+
| 2.2.0 | 3 | 3 | |
395+
| 2.3.0 | 4 | 3,4 | |
396+
| 2.4.0 | 4 | 3,4 | See the following note |
397+
| 2.4.1 | 5 | 5 | |
398+
399+
Note: 2.4.0 had a broken AoT versioning. See [issue 4504] for details.
400+
We recommend all 2.4.0 users to migrate to 2.4.1.
401+
402+
[issue 4504]: https://github.com/bytecodealliance/wasm-micro-runtime/issues/4504
396403
397404
## AoT compilation with 3rd-party toolchains
398405

test-tools/aot-analyzer/include/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define WASM_CURRENT_VERSION 1
1616

1717
#define AOT_MAGIC_NUMBER 0x746f6100
18-
#define AOT_CURRENT_VERSION 4
18+
#define AOT_CURRENT_VERSION 5
1919

2020
/* Legal values for bin_type */
2121
#define BIN_TYPE_ELF32L 0 /* 32-bit little endian */

0 commit comments

Comments
 (0)