Move std.Target.SubSystem to std.zig.Subsystem

Also updates the field names to conform with the rest of std.
This commit is contained in:
Carl Åstholm
2025-09-05 17:50:46 +02:00
parent 075d300342
commit 54f2a7c833
9 changed files with 66 additions and 109 deletions
+2 -11
View File
@@ -171,7 +171,7 @@ lto: ?std.zig.LtoMode = null,
dll_export_fns: ?bool = null,
subsystem: ?std.Target.SubSystem = null,
subsystem: ?std.zig.Subsystem = null,
/// (Windows) When targeting the MinGW ABI, use the unicode entry point (wmain/wWinMain)
mingw_unicode_entry_point: bool = false,
@@ -1764,16 +1764,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
if (compile.subsystem) |subsystem| {
try zig_args.append("--subsystem");
try zig_args.append(switch (subsystem) {
.Console => "console",
.Windows => "windows",
.Posix => "posix",
.Native => "native",
.EfiApplication => "efi_application",
.EfiBootServiceDriver => "efi_boot_service_driver",
.EfiRom => "efi_rom",
.EfiRuntimeDriver => "efi_runtime_driver",
});
try zig_args.append(@tagName(subsystem));
}
if (compile.mingw_unicode_entry_point) {