From 1a9168ab7d1d5337ec954f7897c2e6b51a0bd95e Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Wed, 4 Feb 2026 15:02:12 -0500 Subject: Convert Graphemes to static allocation And DisplayWidth, although untested at present. The plan is to just work through the codegen / module pairings, and move tests over until everything is covered. --- build.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 5678cd1..aab8516 100644 --- a/build.zig +++ b/build.zig @@ -52,7 +52,7 @@ pub fn build(b: *std.Build) void { gbp_gen_exe.root_module.addAnonymousImport("GraphemeBreakProperty.txt", .{ .root_source_file = b.path("data/unicode/auxiliary/GraphemeBreakProperty.txt") }); gbp_gen_exe.root_module.addAnonymousImport("emoji-data.txt", .{ .root_source_file = b.path("data/unicode/emoji/emoji-data.txt") }); const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); - const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.bin.z"); + const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.zig"); const wbp_gen_exe = b.addExecutable(.{ .name = "wbp", @@ -78,7 +78,7 @@ pub fn build(b: *std.Build) void { dwp_gen_exe.root_module.addAnonymousImport("DerivedGeneralCategory.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedGeneralCategory.txt") }); dwp_gen_exe.root_module.addOptions("options", dwp_options); const run_dwp_gen_exe = b.addRunArtifact(dwp_gen_exe); - const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.bin.z"); + const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.zig"); // Normalization properties const canon_gen_exe = b.addExecutable(.{ @@ -514,6 +514,9 @@ pub fn build(b: *std.Build) void { const run_unicode_tests = b.addRunArtifact(unicode_tests); + const test_unicode_step = b.step("unicode", "Rune unicode tests"); + test_unicode_step.dependOn(&run_unicode_tests.step); + const test_step = b.step("test", "Run all module tests"); test_step.dependOn(&run_unicode_tests.step); test_step.dependOn(&code_point_tr.step); -- cgit v1.2.3