| ... | @@ -18,6 +18,7 @@ pub fn build(b: *std.Build) void { | ... | @@ -18,6 +18,7 @@ pub fn build(b: *std.Build) void { |
| 18 | test_exe.linkLibC(); | 18 | test_exe.linkLibC(); |
| 19 | test_exe.use_llvm = !disable_llvm; | 19 | test_exe.use_llvm = !disable_llvm; |
| 20 | test_exe.use_lld = !disable_llvm; | 20 | test_exe.use_lld = !disable_llvm; |
| | 21 | b.getInstallStep().dependOn(&test_exe.step); |
| 21 | | 22 | |
| 22 | const build_options = b.addOptions(); | 23 | const build_options = b.addOptions(); |
| 23 | build_options.addOption(string, "JSONTestSuite_root", deps.dirs._bebdygynna6k ++ "/test_parsing"); | 24 | build_options.addOption(string, "JSONTestSuite_root", deps.dirs._bebdygynna6k ++ "/test_parsing"); |
| ... | @@ -34,6 +35,7 @@ pub fn build(b: *std.Build) void { | ... | @@ -34,6 +35,7 @@ pub fn build(b: *std.Build) void { |
| 34 | // | 35 | // |
| 35 | | 36 | |
| 36 | const fuzz_exe = addFuzzer(b, target, "json", &.{}); | 37 | const fuzz_exe = addFuzzer(b, target, "json", &.{}); |
| | 38 | b.getInstallStep().dependOn(fuzz_exe.step.dependencies.items[0]); |
| 37 | | 39 | |
| 38 | const fuzz_run = b.addSystemCommand(&.{"afl-fuzz"}); | 40 | const fuzz_run = b.addSystemCommand(&.{"afl-fuzz"}); |
| 39 | fuzz_run.step.dependOn(&fuzz_exe.step); | 41 | fuzz_run.step.dependOn(&fuzz_exe.step); |