diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-02-01 12:49:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-01 12:49:51 -0800 |
| commit | 102d9542203e52839156cb61efdfca8403a379a9 (patch) | |
| tree | 72daf0d9a1ac3680f2f1fbc6447a120dde9b52ee /src/main.zig | |
| parent | 06b29c854656a1f9320ee16024b1c3a6b78180a5 (diff) | |
| parent | 1055344673a87af39f2288bae069ec9403e6086d (diff) | |
| download | zig-102d9542203e52839156cb61efdfca8403a379a9.tar.gz zig-102d9542203e52839156cb61efdfca8403a379a9.zip | |
Merge pull request #7827 from Snektron/spirv-setup
Stage 2: SPIR-V setup
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 26e222016a..bfe0d6786b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -312,6 +312,7 @@ const usage_build_generic = \\ pe Portable Executable (Windows) \\ coff Common Object File Format (Windows) \\ macho macOS relocatables + \\ spirv Standard, Portable Intermediate Representation V (SPIR-V) \\ hex (planned) Intel IHEX \\ raw (planned) Dump machine code directly \\ -dirafter [dir] Add directory to AFTER include search path @@ -1588,6 +1589,8 @@ fn buildOutputType( break :blk .hex; } else if (mem.eql(u8, ofmt, "raw")) { break :blk .raw; + } else if (mem.eql(u8, ofmt, "spirv")) { + break :blk .spirv; } else { fatal("unsupported object format: {s}", .{ofmt}); } |
