aboutsummaryrefslogtreecommitdiff
path: root/lib/std/zig.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-11 22:11:35 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-08-11 20:21:28 -0700
commit6316fd95351fb207d0680f396123a455a91ea4a2 (patch)
tree0d65c18c41e4375762a88dc57d265b4814495fb1 /lib/std/zig.zig
parentfc2924080694d68945308d394751a2ec4841b3c0 (diff)
downloadzig-6316fd95351fb207d0680f396123a455a91ea4a2.tar.gz
zig-6316fd95351fb207d0680f396123a455a91ea4a2.zip
std.Target: Add goff and xcoff to ObjectFormat.
Also improve the docs a bit, and handle driverkit and dxil in default().
Diffstat (limited to 'lib/std/zig.zig')
-rw-r--r--lib/std/zig.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/zig.zig b/lib/std/zig.zig
index 01d3aafa75..c11b5319c5 100644
--- a/lib/std/zig.zig
+++ b/lib/std/zig.zig
@@ -163,7 +163,7 @@ pub fn binNameAlloc(allocator: Allocator, options: BinNameOptions) error{OutOfMe
},
.Obj => return std.fmt.allocPrint(allocator, "{s}.obj", .{root_name}),
},
- .elf => switch (options.output_mode) {
+ .elf, .goff, .xcoff => switch (options.output_mode) {
.Exe => return allocator.dupe(u8, root_name),
.Lib => {
switch (options.link_mode orelse .static) {