Skip to content

Commit 15aa274

Browse files
Initialize wasi-vfs runtime at initialization time
1 parent a9fb5e2 commit 15aa274

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/gems/js/ext/js/witapi-core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ static inline void __wasm_call_ctors_if_needed(void) {
362362
if (!__wasm_call_ctors_done) {
363363
__wasm_call_ctors_done = true;
364364
__wasm_call_ctors();
365+
366+
__attribute__((weak)) extern void __wasi_vfs_rt_init(void);
367+
if (__wasi_vfs_rt_init) {
368+
__wasi_vfs_rt_init();
369+
}
365370
}
366371
}
367372

0 commit comments

Comments
 (0)