| ... | @@ -26,6 +26,10 @@ pub const Env = enum { | ... | @@ -26,6 +26,10 @@ pub const Env = enum { |
| 26 | /// - `zig build-* -fno-llvm -fno-lld -target x86_64-linux` | 26 | /// - `zig build-* -fno-llvm -fno-lld -target x86_64-linux` |
| 27 | @"x86_64-linux", | 27 | @"x86_64-linux", |
| 28 | | 28 | |
| | 29 | /// - sema |
| | 30 | /// - `zig build-* -fno-llvm -fno-lld -target riscv64-linux` |
| | 31 | @"riscv64-linux", |
| | 32 | |
| 29 | pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool { | 33 | pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool { |
| 30 | return switch (dev_env) { | 34 | return switch (dev_env) { |
| 31 | .full => true, | 35 | .full => true, |
| ... | @@ -131,6 +135,12 @@ pub const Env = enum { | ... | @@ -131,6 +135,12 @@ pub const Env = enum { |
| 131 | => true, | 135 | => true, |
| 132 | else => Env.sema.supports(feature), | 136 | else => Env.sema.supports(feature), |
| 133 | }, | 137 | }, |
| | 138 | .@"riscv64-linux" => switch (feature) { |
| | 139 | .riscv64_backend, |
| | 140 | .elf_linker, |
| | 141 | => true, |
| | 142 | else => Env.sema.supports(feature), |
| | 143 | }, |
| 134 | }; | 144 | }; |
| 135 | } | 145 | } |
| 136 | | 146 | |