Compare commits

2 Commits

4 changed files with 10 additions and 10 deletions

View File

@@ -65,9 +65,9 @@ pub fn build(b: *std.Build) void {
const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3, .shared = true } }); const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3, .shared = true } });
zgui_pkg.link(exe); zgui_pkg.link(exe);
exe.install(); b.installArtifact(exe);
const run_cmd = exe.run(); const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep()); run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| { if (b.args) |args| {
run_cmd.addArgs(args); run_cmd.addArgs(args);

View File

@@ -39,7 +39,7 @@ pub const arm = struct {
} }
fn populate() [0x1000]InstrFn { fn populate() [0x1000]InstrFn {
comptime { return comptime comptime_blk: {
@setEvalBranchQuota(0xE000); @setEvalBranchQuota(0xE000);
var table = [_]InstrFn{und} ** 0x1000; var table = [_]InstrFn{und} ** 0x1000;
@@ -106,8 +106,8 @@ pub const arm = struct {
}; };
} }
return table; break :comptime_blk table;
} };
} }
}; };
@@ -135,7 +135,7 @@ pub const thumb = struct {
} }
fn populate() [0x400]InstrFn { fn populate() [0x400]InstrFn {
comptime { return comptime comptime_blk: {
@setEvalBranchQuota(5025); // This is exact @setEvalBranchQuota(5025); // This is exact
var table = [_]InstrFn{und} ** 0x400; var table = [_]InstrFn{und} ** 0x400;
@@ -228,8 +228,8 @@ pub const thumb = struct {
}; };
} }
return table; break :comptime_blk table;
} };
} }
}; };