Skip to content

Commit

Permalink
Add code for generating the case_fold.zig data
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Jun 26, 2024
1 parent f4db923 commit 1652cf3
Show file tree
Hide file tree
Showing 3 changed files with 448 additions and 106 deletions.
10 changes: 10 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ pub fn build(b: *std.Build) void {
synchsafe_exe.root_module.addImport("audiometa", audiometa);
b.installArtifact(synchsafe_exe);

const gen_case_fold_exe = b.addExecutable(.{
.name = "gen_case_fold",
.root_source_file = b.path("tools/gen_case_fold.zig"),
.target = target,
.optimize = mode,
});
const gen_case_fold_install = b.addInstallArtifact(gen_case_fold_exe, .{});
const gen_case_fold_step = b.step("gen_case_fold", "Build executable to generate arrays for case_fold.zig");
gen_case_fold_step.dependOn(&gen_case_fold_install.step);

// Fuzz

_ = addFuzzer(b, "fuzz", &.{}, audiometa, target) catch unreachable;
Expand Down
Loading

0 comments on commit 1652cf3

Please sign in to comment.