From f6ae994ddff61e9c049d9c5ad1d46c660a9c17ea Mon Sep 17 00:00:00 2001 From: git Date: Thu, 12 Jun 2025 06:39:10 +0000 Subject: [PATCH] Remove Signed-off-by: git --- build.zig | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/build.zig b/build.zig index 7cbdd7c..8950180 100644 --- a/build.zig +++ b/build.zig @@ -8,30 +8,6 @@ const aro_version = std.SemanticVersion{ .patch = 0, }; -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."); - const fuzz_lib = b.addStaticLibrary(.{ - .name = "fuzz-lib", - .root_source_file = b.path("test/fuzz/fuzz_lib.zig"), - .optimize = .Debug, - .target = target, - .single_threaded = true, - }); - fuzz_lib.want_lto = true; - fuzz_lib.bundle_compiler_rt = true; - fuzz_lib.pie = true; - - fuzz_lib.root_module.addImport("aro", aro_module); - const fuzz_compile = b.addSystemCommand(&.{afl_clang_lto_path}); - fuzz_compile.addFileArg(b.path("test/fuzz/main.c")); - fuzz_compile.addArg("-o"); - const fuzz_exe = fuzz_compile.addOutputFileArg("arofuzz"); - const fuzz_install = b.addInstallBinFile(fuzz_exe, "arofuzz"); - - fuzz_compile.addArtifactArg(fuzz_lib); - fuzz_step.dependOn(&fuzz_install.step); -} - pub fn build(b: *Build) !void { // Standard target options allows the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which -- Gitee