-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblycontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-wasi
Milestone
Description
It would be great to be able to compile Zig (the compiler) to the wasm32
target.
From what I understood this are the required things to make it happen:
- One of:
- Flock support in WASI, OR
- Print warning instead of calling flock
- CWD support in WASI Zig (it's already supported in wasi-libc: Add basic emulation of getcwd/chdir WebAssembly/wasi-libc#214 )
- One of:
- Ship Zig just with the Zig syntax (no support for Clang at the beginning)
- arocc merged upstream https://github.com/Vexu/arocc, OR
- Compile LLVM to WASI https://github.com/binji/llvm-project (it's version 8.0, not sure if that would work or not, it should be easy to upgrade!)
kubkon, inkeliz, reo101, matu3ba, RoyalIcing and 2 more
Metadata
Metadata
Assignees
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblycontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-wasi