We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__original_main
1 parent cf81683 commit 8c9e1c6Copy full SHA for 8c9e1c6
1 file changed
libc-bottom-half/sources/__original_main.c
@@ -9,6 +9,7 @@ int main(int argc, char *argv[]);
9
// If the user's `main` function expects arguments, the compiler won't emit
10
// an `__original_main` function so this version will get linked in, which
11
// initializes the argument data and calls `main`.
12
+__attribute__((weak))
13
int __original_main(void) {
14
__wasi_errno_t err;
15
0 commit comments