aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Compile.zig
diff options
context:
space:
mode:
authorCarl Åstholm <carl@astholm.se>2025-09-05 17:50:46 +0200
committerCarl Åstholm <carl@astholm.se>2025-11-05 01:31:26 +0100
commit54f2a7c833bf2ca0b370ebe2470bb0dd71206cba (patch)
treebad5322f30fbc01a0b842d8128659d43d947f82e /lib/std/Build/Step/Compile.zig
parent075d300342afa72f5328c0ee4232151dd0968264 (diff)
downloadzig-54f2a7c833bf2ca0b370ebe2470bb0dd71206cba.tar.gz
zig-54f2a7c833bf2ca0b370ebe2470bb0dd71206cba.zip
Move `std.Target.SubSystem` to `std.zig.Subsystem`
Also updates the field names to conform with the rest of std.
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
-rw-r--r--lib/std/Build/Step/Compile.zig13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig
index a5f2d696be..c82846a640 100644
--- a/lib/std/Build/Step/Compile.zig
+++ b/lib/std/Build/Step/Compile.zig
@@ -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) {