remove most conditional compilation based on stage1

There are still a few occurrences of "stage1" in the standard library
and self-hosted compiler source, however, these instances need a bit
more careful inspection to ensure no breakage.
This commit is contained in:
Andrew Kelley
2022-12-06 20:35:50 -07:00
parent c8aba15c22
commit 50eb7983cd
88 changed files with 365 additions and 573 deletions

View File

@@ -15,10 +15,7 @@ const Runnable = struct {
runFn: RunProto,
};
const RunProto = switch (builtin.zig_backend) {
.stage1 => fn (*Runnable) void,
else => *const fn (*Runnable) void,
};
const RunProto = *const fn (*Runnable) void;
pub fn init(pool: *ThreadPool, allocator: std.mem.Allocator) !void {
pool.* = .{