diff options
| author | David Rubin <daviru007@icloud.com> | 2024-07-19 23:37:17 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-07-22 05:50:48 -0700 |
| commit | fcff82feb2565b427349927624da85089f5e3601 (patch) | |
| tree | 5c7f5a4d916c7fe107f4cdddad67d71dfd775144 /src/dev.zig | |
| parent | 1fc42ed3e7ca0b74b54aaa827276d995d6c7c6cd (diff) | |
| download | zig-fcff82feb2565b427349927624da85089f5e3601.tar.gz zig-fcff82feb2565b427349927624da85089f5e3601.zip | |
dev: add riscv64-linux support
Diffstat (limited to 'src/dev.zig')
| -rw-r--r-- | src/dev.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dev.zig b/src/dev.zig index fc518e93b6..9746b307af 100644 --- 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), + }, }; } |
