authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-24 16:05:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-26 20:54:49-07:00
log22e6b1d609c6d2dd87b5206bf21d2bf94b30f2d4
treee8a2bbcff0748a60f0fad9a81c9befa16cd84208
parent7e643ae8ab105bf3c63d2879ee3fb4a57b5bfbe8

start: no special handling for spork8 needed

All the existing conditionals already handle it correctly.

1 files changed, 1 insertions(+), 3 deletions(-)

lib/std/start.zig+1-3
......@@ -19,9 +19,7 @@ comptime {
1919 // decls there get run.
2020 _ = root;
2121
22 if (builtin.cpu.arch == .spork8) {
23 // always freestanding, even exes
24 } else if (builtin.output_mode == .Lib and builtin.link_mode == .dynamic) {
22 if (builtin.output_mode == .Lib and builtin.link_mode == .dynamic) {
2523 const dll_main_crt_startup = if (builtin.abi.isGnu()) "DllMainCRTStartup" else "_DllMainCRTStartup";
2624 if (native_os == .windows and !builtin.link_libc and !@hasDecl(root, dll_main_crt_startup)) {
2725 @export(&DllMainCRTStartup, .{ .name = dll_main_crt_startup });