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

Commit 758bd3b

Browse files
fix: make pointer and handle error
1 parent b799233 commit 758bd3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Step/Configure.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn make(step: *std.Build.Step, _: *std.Progress.Node) anyerror!void {
7171
b.pathJoin(&.{ self.source.getPath2(b, step), "configure" }),
7272
b.fmt("--build={s}", .{try self.target.query.zigTriple(arena)}),
7373
"--prefix=/usr",
74-
b.fmt("--includedir={s}", .{b.cache_root.join(b.allocator, &.{ "expidus-dev", "include" })}),
74+
b.fmt("--includedir={s}", .{try b.cache_root.join(b.allocator, &.{ "expidus-dev", "include" })}),
7575
b.fmt("--enable-{s}", .{@as([]const u8, switch (self.linkage) {
7676
.dynamic => "shared",
7777
else => @tagName(self.linkage),
@@ -120,7 +120,7 @@ fn make(step: *std.Build.Step, _: *std.Progress.Node) anyerror!void {
120120
.allocator = arena,
121121
.argv = args.items,
122122
.cwd = self.source.getPath2(b, step),
123-
.env_map = env_map,
123+
.env_map = &env_map,
124124
}) catch |err| return step.fail("unable to spawn {s}: {s}", .{ cmd, @errorName(err) });
125125

126126
if (result.stderr.len > 0) {

0 commit comments

Comments
 (0)