Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new package] wasi-libc #21550

Closed
wants to merge 7 commits into from
Closed

Conversation

ArchGuyWu
Copy link
Contributor

@ArchGuyWu ArchGuyWu commented Aug 1, 2024

wasi-libc is a libc for WebAssembly programs built on top of WASI system calls. It provides a wide array of POSIX-compatible C APIs, including support for standard I/O, file I/O, filesystem manipulation, memory management, time, string, environment variables, program startup, and many other APIs.

@ArchGuyWu
Copy link
Contributor Author

ArchGuyWu commented Aug 2, 2024

It built successfully in CLANG64, but not in UCRT64 and MINGW64. In UCRT64 and MINGW64, AR is set as gcc, and I'm unsure why.

In CLANG64:

for name in m rt pthread crypt util xnet resolv; do \
      llvm-ar crs "/C/_/B/src/wasi-libc/sysroot/lib/wasm32-wasi/lib${name}.a"; \
done

In UCRT64 and MINGW64:

for name in m rt pthread crypt util xnet resolv; do \
      gcc crs "/C/_/B/src/wasi-libc/sysroot/lib/wasm32-wasi/lib${name}.a"; \
done

@ArchGuyWu
Copy link
Contributor Author

ArchGuyWu commented Aug 2, 2024

I've opened an issue on the wasi-libc repo: WebAssembly/wasi-libc#523

@ArchGuyWu
Copy link
Contributor Author

Now we're ready to add package rust-wasm.

@ArchGuyWu ArchGuyWu mentioned this pull request Aug 2, 2024
6 tasks
@ArchGuyWu
Copy link
Contributor Author

ArchGuyWu commented Aug 4, 2024

I'll try to add package rust-wasm by myself, so close this for now.

@ArchGuyWu ArchGuyWu closed this Aug 4, 2024
@ArchGuyWu ArchGuyWu deleted the ArchGuyWu-patch-2 branch August 6, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant