From cfebc3b0cccb86707e51935ca5950ee8ceadc440 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Wed, 13 Jul 2022 07:37:12 -0700 Subject: [PATCH] Disable stage1 --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index 8b7984a..a2b54b1 100644 --- a/build.zig +++ b/build.zig @@ -22,6 +22,10 @@ pub fn build(b: *std.build.Builder) void { // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. const mode = b.standardReleaseOptions(); + // There are some weird problems relating to sentinel values and function pointers + // when using the stage1 compiler. Just disable it entirely for now. + b.use_stage1 = false; + const exe = b.addExecutable("apub", "src/main/main.zig"); exe.setTarget(target); exe.setBuildMode(mode);