Skip to content

Commit 2405230

Browse files
committed
call __wasm_call_ctors in all exported functions
Now that we've updated to the latest Rust Spin SDK, which uses a newer `wit-bindgen`, we need to call `__wasm_call_ctors` explicitly in order to initialize `wasi-libc` (e.g. grab environment variables, etc.). Previously, this was done implicitly, but that caused other problems, so `wit-bindgen` does it explicitly, which has the side effect of telling `wasm-ld` _not_ to do it implicitly. Signed-off-by: Joel Dice <[email protected]>
1 parent 3c2ce12 commit 2405230

File tree

3 files changed

+2719
-30
lines changed

3 files changed

+2719
-30
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/target
2-
/Cargo.lock
32
__pycache__
43
*.wasm
5-
.spin
4+
.spin

0 commit comments

Comments
 (0)