From a7164d9e7b3c3ec6813e06a42d82180d766e15ca Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Wed, 30 Apr 2025 20:32:23 -0400 Subject: Unicode 16.0 Went smoothly, needed to add some scripts and adjust the magic numbers, but other than that, all set. --- build.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index ecf33cd..58fd3e7 100644 --- a/build.zig +++ b/build.zig @@ -4,6 +4,13 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); + // 'magic' module + const magic = b.createModule(.{ + .root_source_file = b.path("src/magic_numbers.zig"), + .target = target, + .optimize = optimize, + }); + // Code generation // Grapheme break const gbp_gen_exe = b.addExecutable(.{ @@ -265,6 +272,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); canon_data.addAnonymousImport("canon", .{ .root_source_file = canon_gen_out }); + canon_data.addImport("magic", magic); const canon_data_t = b.addTest(.{ .name = "canon_data", @@ -280,6 +288,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); compat_data.addAnonymousImport("compat", .{ .root_source_file = compat_gen_out }); + compat_data.addImport("magic", magic); const compat_data_t = b.addTest(.{ .name = "compat_data", -- cgit v1.2.3