Skip to content

Commit

Permalink
b.host target
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Apr 26, 2024
1 parent 9de1de7 commit b09bfff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,10 @@ pub fn install_cart(b: *Build, cart: *Cart) void {
}

fn add_zeroman_assets_step(b: *Build, cart: *Cart) void {
const host_target = b.resolveTargetQuery(.{});
const convert = b.addExecutable(.{
.name = "convert_gfx",
.root_source_file = b.path("samples/zeroman/build/convert_gfx.zig"),
.target = host_target,
.target = b.host,
.optimize = cart.options.optimize,
});
convert.root_module.addImport("zigimg", b.dependency("zigimg", .{}).module("zigimg"));
Expand Down

0 comments on commit b09bfff

Please sign in to comment.