From ba5d9081b479e95ffa7f3baf751beedd370cec14 Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Wed, 4 Feb 2026 18:01:36 -0500 Subject: Normalization and case folding Both of which deserve some further attention. --- build.zig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 1ae7005..fa8c490 100644 --- a/build.zig +++ b/build.zig @@ -103,7 +103,7 @@ pub fn build(b: *std.Build) void { }); compat_gen_exe.root_module.addAnonymousImport("UnicodeData.txt", .{ .root_source_file = b.path("data/unicode/UnicodeData.txt") }); const run_compat_gen_exe = b.addRunArtifact(compat_gen_exe); - const compat_gen_out = run_compat_gen_exe.addOutputFileArg("compat.bin.z"); + const compat_gen_out = run_compat_gen_exe.addOutputFileArg("compat.zig"); const hangul_gen_exe = b.addExecutable(.{ .name = "hangul", @@ -115,7 +115,7 @@ pub fn build(b: *std.Build) void { }); hangul_gen_exe.root_module.addAnonymousImport("HangulSyllableType.txt", .{ .root_source_file = b.path("data/unicode/HangulSyllableType.txt") }); const run_hangul_gen_exe = b.addRunArtifact(hangul_gen_exe); - const hangul_gen_out = run_hangul_gen_exe.addOutputFileArg("hangul.bin.z"); + const hangul_gen_out = run_hangul_gen_exe.addOutputFileArg("hangul.zig"); const normp_gen_exe = b.addExecutable(.{ .name = "normp", @@ -127,7 +127,7 @@ pub fn build(b: *std.Build) void { }); normp_gen_exe.root_module.addAnonymousImport("DerivedNormalizationProps.txt", .{ .root_source_file = b.path("data/unicode/DerivedNormalizationProps.txt") }); const run_normp_gen_exe = b.addRunArtifact(normp_gen_exe); - const normp_gen_out = run_normp_gen_exe.addOutputFileArg("normp.bin.z"); + const normp_gen_out = run_normp_gen_exe.addOutputFileArg("normp.zig"); const ccc_gen_exe = b.addExecutable(.{ .name = "ccc", @@ -139,7 +139,7 @@ pub fn build(b: *std.Build) void { }); ccc_gen_exe.root_module.addAnonymousImport("DerivedCombiningClass.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedCombiningClass.txt") }); const run_ccc_gen_exe = b.addRunArtifact(ccc_gen_exe); - const ccc_gen_out = run_ccc_gen_exe.addOutputFileArg("ccc.bin.z"); + const ccc_gen_out = run_ccc_gen_exe.addOutputFileArg("ccc.zig"); const gencat_gen_exe = b.addExecutable(.{ .name = "gencat", @@ -164,7 +164,7 @@ pub fn build(b: *std.Build) void { fold_gen_exe.root_module.addAnonymousImport("DerivedCoreProperties.txt", .{ .root_source_file = b.path("data/unicode/DerivedCoreProperties.txt") }); fold_gen_exe.root_module.addAnonymousImport("CaseFolding.txt", .{ .root_source_file = b.path("data/unicode/CaseFolding.txt") }); const run_fold_gen_exe = b.addRunArtifact(fold_gen_exe); - const fold_gen_out = run_fold_gen_exe.addOutputFileArg("fold.bin.z"); + const fold_gen_out = run_fold_gen_exe.addOutputFileArg("fold.zig"); // Numeric types const num_gen_exe = b.addExecutable(.{ @@ -518,6 +518,8 @@ pub fn build(b: *std.Build) void { test_unicode_step.dependOn(&run_unicode_tests.step); test_unicode_step.dependOn(&display_width_tr.step); test_unicode_step.dependOn(&words_tr.step); + test_unicode_step.dependOn(&norm_tr.step); + test_unicode_step.dependOn(&case_fold_tr.step); const test_step = b.step("test", "Run all module tests"); test_step.dependOn(&run_unicode_tests.step); -- cgit v1.2.3