Skip to content

Commit

Permalink
code gen must run on host
Browse files Browse the repository at this point in the history
  • Loading branch information
FObersteiner committed Aug 7, 2024
1 parent 5354997 commit b90b9cb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ pub fn build(b: *std.Build) !void {
var gen_tzdb_prefix = b.addExecutable(.{
.name = "gen_tzdb_prefix",
.root_source_file = b.path("util/gen_tzdb_prefix.zig"),
.target = target,
.optimize = optimize,
.target = b.host,
});
const run_gen_prefix = b.addRunArtifact(gen_tzdb_prefix);
run_gen_prefix.step.dependOn(&gen_tzdb_prefix.step);
Expand Down Expand Up @@ -113,8 +112,7 @@ pub fn build(b: *std.Build) !void {
var gen_tzdb = b.addExecutable(.{
.name = "gen_tzdb",
.root_source_file = b.path("util/gen_tzdb.zig"),
.target = target,
.optimize = optimize,
.target = b.host,
});

const run_tzdata_update = b.addRunArtifact(gen_tzdb);
Expand All @@ -134,8 +132,7 @@ pub fn build(b: *std.Build) !void {
var gen_tzdb_version = b.addExecutable(.{
.name = "gen_tzdb_version",
.root_source_file = b.path("util/gen_tzdb_version.zig"),
.target = target,
.optimize = optimize,
.target = b.host,
});

const run_gen_version = b.addRunArtifact(gen_tzdb_version);
Expand Down

0 comments on commit b90b9cb

Please sign in to comment.