commit fcff82feb2565b427349927624da85089f5e3601 (tree)
parent 1fc42ed3e7ca0b74b54aaa827276d995d6c7c6cd
Author: David Rubin <daviru007@icloud.com>
Date: Fri, 19 Jul 2024 23:37:17 -0700
dev: add riscv64-linux support
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/dev.zig b/src/dev.zig
@@ -26,6 +26,10 @@ pub const Env = enum {
/// - `zig build-* -fno-llvm -fno-lld -target x86_64-linux`
@"x86_64-linux",
+ /// - sema
+ /// - `zig build-* -fno-llvm -fno-lld -target riscv64-linux`
+ @"riscv64-linux",
+
pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool {
return switch (dev_env) {
.full => true,
@@ -131,6 +135,12 @@ pub const Env = enum {
=> true,
else => Env.sema.supports(feature),
},
+ .@"riscv64-linux" => switch (feature) {
+ .riscv64_backend,
+ .elf_linker,
+ => true,
+ else => Env.sema.supports(feature),
+ },
};
}