Commit edee2eb
authored
Loosen the wasi abi compatibility check in loader (#1932)
Change an error to warning when checking wasi abi compatibility in loader, for rust case below:
#[no_mangle]
pub extern "C" fn main() {
println!("foo");
}
compile it with `cargo build --target wasm32-wasi`, a wasm file is generated with wasi apis imported
and a "void main(void)" function exported.
Other runtime e.g. wasmtime allows to load it and execute the main function with `--invoke` option.1 parent 27e7e16 commit edee2eb
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4151 | 4151 | | |
4152 | 4152 | | |
4153 | 4153 | | |
4154 | | - | |
4155 | | - | |
4156 | | - | |
4157 | | - | |
| 4154 | + | |
| 4155 | + | |
4158 | 4156 | | |
4159 | 4157 | | |
4160 | 4158 | | |
| |||
0 commit comments