Disable stage1

This commit is contained in:
jaina heartles 2022-07-13 07:37:12 -07:00
parent 84e62ffe38
commit cfebc3b0cc
1 changed files with 4 additions and 0 deletions

View File

@ -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);