diff options
Diffstat (limited to 'src/dev.zig')
| -rw-r--r-- | src/dev.zig | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/dev.zig b/src/dev.zig index 4c602621ec..bf2d957c0d 100644 --- a/src/dev.zig +++ b/src/dev.zig @@ -25,14 +25,14 @@ pub const Env = enum { /// - `zig build-* -fno-emit-bin` sema, + /// - sema + /// - `zig build-* -fincremental -fno-llvm -fno-lld -target aarch64-linux --listen=-` + @"aarch64-linux", + /// - `zig build-* -ofmt=c` cbe, /// - sema - /// - `zig build-* -fincremental -fno-llvm -fno-lld -target x86_64-linux --listen=-` - @"x86_64-linux", - - /// - sema /// - `zig build-* -fincremental -fno-llvm -fno-lld -target powerpc(64)(le)-linux --listen=-` @"powerpc-linux", @@ -48,6 +48,10 @@ pub const Env = enum { /// - `zig build-* -fno-llvm -fno-lld -target wasm32-* --listen=-` wasm, + /// - sema + /// - `zig build-* -fincremental -fno-llvm -fno-lld -target x86_64-linux --listen=-` + @"x86_64-linux", + pub inline fn supports(comptime dev_env: Env, comptime feature: Feature) bool { return switch (dev_env) { .full => true, @@ -153,23 +157,22 @@ pub const Env = enum { => true, else => Env.ast_gen.supports(feature), }, - .cbe => switch (feature) { - .legalize, - .c_backend, - .c_linker, - => true, - else => Env.sema.supports(feature), - }, - .@"x86_64-linux" => switch (feature) { + .@"aarch64-linux" => switch (feature) { .build_command, .stdio_listen, .incremental, - .legalize, - .x86_64_backend, + .aarch64_backend, .elf_linker, => true, else => Env.sema.supports(feature), }, + .cbe => switch (feature) { + .legalize, + .c_backend, + .c_linker, + => true, + else => Env.sema.supports(feature), + }, .@"powerpc-linux" => switch (feature) { .build_command, .stdio_listen, @@ -199,6 +202,16 @@ pub const Env = enum { => true, else => Env.sema.supports(feature), }, + .@"x86_64-linux" => switch (feature) { + .build_command, + .stdio_listen, + .incremental, + .legalize, + .x86_64_backend, + .elf_linker, + => true, + else => Env.sema.supports(feature), + }, }; } |
