Skip to content

Commit

Permalink
Add support for the Reactor model.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Apr 13, 2020
1 parent 86550c3 commit 695a003
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions expected/wasm32-wasi/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ __wctype_l
__xpg_basename
__xpg_strerror_r
__year_to_secs
_activate
_environ
_exit
_fini
Expand Down
7 changes: 7 additions & 0 deletions libc-bottom-half/crt/reactor-crt1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <wasi/api.h>
extern void __wasm_call_ctors(void);

void _activate(void) {
// The linker synthesizes this to call constructors.
__wasm_call_ctors();
}

0 comments on commit 695a003

Please sign in to comment.