| ... | @@ -30,6 +30,10 @@ pub const Env = enum { | ... | @@ -30,6 +30,10 @@ pub const Env = enum { |
| 30 | /// - `zig build-* -fno-llvm -fno-lld -target riscv64-linux` | 30 | /// - `zig build-* -fno-llvm -fno-lld -target riscv64-linux` |
| 31 | @"riscv64-linux", | 31 | @"riscv64-linux", |
| 32 | | 32 | |
| | 33 | /// - sema |
| | 34 | /// - `zig build-* -fno-llvm -fno-lld -target wasm32-* --listen=-` |
| | 35 | wasm, |
| | 36 | |
| 33 | pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool { | 37 | pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool { |
| 34 | return switch (dev_env) { | 38 | return switch (dev_env) { |
| 35 | .full => true, | 39 | .full => true, |
| ... | @@ -144,6 +148,14 @@ pub const Env = enum { | ... | @@ -144,6 +148,14 @@ pub const Env = enum { |
| 144 | => true, | 148 | => true, |
| 145 | else => Env.sema.supports(feature), | 149 | else => Env.sema.supports(feature), |
| 146 | }, | 150 | }, |
| | 151 | .wasm => switch (feature) { |
| | 152 | .stdio_listen, |
| | 153 | .incremental, |
| | 154 | .wasm_backend, |
| | 155 | .wasm_linker, |
| | 156 | => true, |
| | 157 | else => Env.sema.supports(feature), |
| | 158 | }, |
| 147 | }; | 159 | }; |
| 148 | } | 160 | } |
| 149 | | 161 | |