summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 17:25:52 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commit23518c9d7c061f8a06f6632da8b64b37801b514f (patch)
tree1f9688a5c2b2c224f47dd538ffab275b1f54da5c /build.zig
parentbc3d18d27f9fc1155db7fac3946c4d38774f9e65 (diff)
downloadpardes-23518c9d7c061f8a06f6632da8b64b37801b514f.tar.gz
pardes-23518c9d7c061f8a06f6632da8b64b37801b514f.zip
zig fmt for Zig 0.17
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig15
1 files changed, 8 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index ddd41a03..ca7b26af 100644
--- a/build.zig
+++ b/build.zig
@@ -39,10 +39,13 @@ pub const macos_min_version: std.SemanticVersion = .{ .major = 13, .minor = 0, .
pub const TreeSitterGrammars = enum { disabled, zig, minimal, full };
const gui_shaders = [_][]const u8{
- "ui.vert", "ui.frag",
+ "ui.vert",
+ "ui.frag",
"decor.frag",
- "overlay.vert", "overlay.frag",
- "image.vert", "image.frag",
+ "overlay.vert",
+ "overlay.frag",
+ "image.vert",
+ "image.frag",
"post.vert",
// The bundled post passes: shaders/post/<name>.glsl behind the
// Shadertoy prefix (shaderSource).
@@ -843,7 +846,7 @@ pub fn build(b: *std.Build) void {
const render_anchor =
\\ if ((!self.refresh and
\\ last.eql(cell) and
- ;
+ ;
if (std.mem.count(u8, render_src, render_anchor) != 1) std.debug.panic("vaxis's Vaxis.zig changed at `{s}`: redo its patch in build.zig", .{render_anchor});
render_src = std.mem.replaceOwned(u8, b.allocator, render_src, render_anchor,
\\ if ((!self.refresh and
@@ -924,7 +927,6 @@ pub fn build(b: *std.Build) void {
.uucode = uucode_mod,
});
-
const iso_off = b.addOptions();
iso_off.addOption(bool, "isolated", false);
const iso_on = b.addOptions();
@@ -1401,7 +1403,6 @@ pub fn build(b: *std.Build) void {
const lspbench_check_step = b.step("lspbench-check", "require every configured language probe to complete correctly");
lspbench_check_step.dependOn(&run_lspbench_check.step);
-
const locations_bench_step = b.step("locations-bench", "measure cold/warm result formatting (-Doptimize=ReleaseFast; CSV on stderr)");
if (optimize != .fast) {
locations_bench_step.dependOn(&b.addFail("locations-bench requires -Doptimize=ReleaseFast").step);
@@ -2016,6 +2017,6 @@ fn wireCore(m: *std.Build.Module, d: struct {
/// helper because `cpu_features_add` wants a set and there is no literal syntax for one.
fn riscvFeatures(comptime features: []const std.Target.riscv.Feature) std.Target.Cpu.Feature.Set {
var set = std.Target.Cpu.Feature.Set.empty;
- for (features) |f| set.addFeature(@intFromEnum(f));
+ for (features) |f| set.addFeature(@backingInt(f));
return set;
}