Skip to content

Commit

Permalink
build: fix fuzz step ofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas authored Feb 18, 2024
1 parent 27cbf20 commit 2d64052
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ const aro_version = std.SemanticVersion{

fn addFuzzStep(b: *Build, target: std.Build.ResolvedTarget, afl_clang_lto_path: []const u8, aro_module: *std.Build.Module) !void {
const fuzz_step = b.step("fuzz", "Build executable for fuzz testing.");
var fuzz_target = target;
fuzz_target.result.ofmt = .c;
const fuzz_target = blk: {
var query = target.query;
query.ofmt = .c;
break :blk b.resolveTargetQuery(query);
};

const lib_dir_step = try ZigLibDirStep.create(b);

Expand Down

0 comments on commit 2d64052

Please sign in to comment.