Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit b799233

Browse files
fix: make slices
1 parent 9d29812 commit b799233

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Step/Autoconf.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn create(b: *std.Build, options: Options) *Autoconf {
3636
self.* = .{
3737
.step = std.Build.Step.init(.{
3838
.id = .custom,
39-
.name = b.fmt("Autoconf {}", .{options.source.getDisplayName()}),
39+
.name = b.fmt("Autoconf {s}", .{options.source.getDisplayName()}),
4040
.owner = b,
4141
.makeFn = make,
4242
}),

Step/Configure.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn create(b: *std.Build, options: Options) *Configure {
2424
self.* = .{
2525
.step = std.Build.Step.init(.{
2626
.id = .custom,
27-
.name = b.fmt("Configure {}", .{options.source.getDisplayName()}),
27+
.name = b.fmt("Configure {s}", .{options.source.getDisplayName()}),
2828
.owner = b,
2929
.makeFn = make,
3030
}),
@@ -56,7 +56,7 @@ fn make(step: *std.Build.Step, _: *std.Progress.Node) anyerror!void {
5656
var man = b.graph.cache.obtain();
5757
defer man.deinit();
5858

59-
try man.addFile(b.pathJoin(&.{ self.source.getPath2(b, step), "configure" }), null);
59+
_ = try man.addFile(b.pathJoin(&.{ self.source.getPath2(b, step), "configure" }), null);
6060

6161
self.output_file.path = b.pathJoin(&.{ self.source.getPath2(b, step), "Makefile" });
6262
if (try step.cacheHit(&man)) return;

Step/Make.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn create(b: *std.Build, options: Options) *Make {
1515
self.* = .{
1616
.step = std.Build.Step.init(.{
1717
.id = .custom,
18-
.name = b.fmt("Make Install {}", .{options.source.getDisplayName()}),
18+
.name = b.fmt("Make Install {s}", .{options.source.getDisplayName()}),
1919
.owner = b,
2020
.makeFn = make,
2121
}),
@@ -33,7 +33,7 @@ fn make(step: *std.Build.Step, _: *std.Progress.Node) anyerror!void {
3333
var man = b.graph.cache.obtain();
3434
defer man.deinit();
3535

36-
try man.addFile(b.pathJoin(&.{ self.source.getPath2(b, step), "Makefile" }), null);
36+
_ = try man.addFile(b.pathJoin(&.{ self.source.getPath2(b, step), "Makefile" }), null);
3737

3838
if (try step.cacheHit(&man)) return;
3939

0 commit comments

Comments
 (0)