diff options
| author | 2024-02-17 09:50:50 -0400 | |
|---|---|---|
| committer | 2024-02-17 09:50:50 -0400 | |
| commit | 6c1a88471fc6444ee93d6ca0c64d0953a0d857ac (patch) | |
| tree | c9ac886559bd1117b75482ab690364a5e792ad2c /build.zig | |
| parent | isAsciiOnly SIMD tweaks (diff) | |
| download | zg-6c1a88471fc6444ee93d6ca0c64d0953a0d857ac.tar.gz zg-6c1a88471fc6444ee93d6ca0c64d0953a0d857ac.tar.xz zg-6c1a88471fc6444ee93d6ca0c64d0953a0d857ac.zip | |
GraphemeIterator ASCII optimization 3x faster
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -72,12 +72,13 @@ pub fn build(b: *std.Build) void { | |||
| 72 | 72 | ||
| 73 | // Tests | 73 | // Tests |
| 74 | const exe_unit_tests = b.addTest(.{ | 74 | const exe_unit_tests = b.addTest(.{ |
| 75 | .root_source_file = .{ .path = "src/display_width.zig" }, | 75 | .root_source_file = .{ .path = "src/Grapheme.zig" }, |
| 76 | .target = target, | 76 | .target = target, |
| 77 | .optimize = optimize, | 77 | .optimize = optimize, |
| 78 | }); | 78 | }); |
| 79 | exe_unit_tests.root_module.addImport("CodePoint", code_point); | 79 | exe_unit_tests.root_module.addImport("CodePoint", code_point); |
| 80 | exe_unit_tests.root_module.addImport("Grapheme", grapheme); | 80 | exe_unit_tests.root_module.addImport("Grapheme", grapheme); |
| 81 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | ||
| 81 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); | 82 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); |
| 82 | 83 | ||
| 83 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); | 84 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); |