Skip to content

Commit

Permalink
Add build_options to cross step
Browse files Browse the repository at this point in the history
  • Loading branch information
schmee committed Oct 30, 2023
1 parent 41f59bf commit 65ab187
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub fn build(b: *std.Build) !void {
.target = try std.zig.CrossTarget.parse(.{ .arch_os_abi = triple }),
.link_libc = true,
});
cross.addOptions("build_options", build_opts);
cross.strip = true;
const cross_install = b.addInstallArtifact(cross, .{});
cross_step.dependOn(&cross_install.step);
Expand Down

0 comments on commit 65ab187

Please sign in to comment.