Skip to content

Commit fcff82f

Browse files
committed
dev: add riscv64-linux support
1 parent 1fc42ed commit fcff82f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/dev.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ pub const Env = enum {
2626
/// - `zig build-* -fno-llvm -fno-lld -target x86_64-linux`
2727
@"x86_64-linux",
2828

29+
/// - sema
30+
/// - `zig build-* -fno-llvm -fno-lld -target riscv64-linux`
31+
@"riscv64-linux",
32+
2933
pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool {
3034
return switch (dev_env) {
3135
.full => true,
@@ -131,6 +135,12 @@ pub const Env = enum {
131135
=> true,
132136
else => Env.sema.supports(feature),
133137
},
138+
.@"riscv64-linux" => switch (feature) {
139+
.riscv64_backend,
140+
.elf_linker,
141+
=> true,
142+
else => Env.sema.supports(feature),
143+
},
134144
};
135145
}
136146

0 commit comments

Comments
 (0)