diff options
| author | 2025-04-30 20:32:23 -0400 | |
|---|---|---|
| committer | 2025-04-30 20:32:23 -0400 | |
| commit | a7164d9e7b3c3ec6813e06a42d82180d766e15ca (patch) | |
| tree | b9c55a45ddac98e51653cb64d39b6b26cfb50362 /build.zig | |
| parent | Allocation Failure Tests (diff) | |
| download | zg-a7164d9e7b3c3ec6813e06a42d82180d766e15ca.tar.gz zg-a7164d9e7b3c3ec6813e06a42d82180d766e15ca.tar.xz zg-a7164d9e7b3c3ec6813e06a42d82180d766e15ca.zip | |
Unicode 16.0
Went smoothly, needed to add some scripts and adjust the magic numbers,
but other than that, all set.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -4,6 +4,13 @@ pub fn build(b: *std.Build) void { | |||
| 4 | const target = b.standardTargetOptions(.{}); | 4 | const target = b.standardTargetOptions(.{}); |
| 5 | const optimize = b.standardOptimizeOption(.{}); | 5 | const optimize = b.standardOptimizeOption(.{}); |
| 6 | 6 | ||
| 7 | // 'magic' module | ||
| 8 | const magic = b.createModule(.{ | ||
| 9 | .root_source_file = b.path("src/magic_numbers.zig"), | ||
| 10 | .target = target, | ||
| 11 | .optimize = optimize, | ||
| 12 | }); | ||
| 13 | |||
| 7 | // Code generation | 14 | // Code generation |
| 8 | // Grapheme break | 15 | // Grapheme break |
| 9 | const gbp_gen_exe = b.addExecutable(.{ | 16 | const gbp_gen_exe = b.addExecutable(.{ |
| @@ -265,6 +272,7 @@ pub fn build(b: *std.Build) void { | |||
| 265 | .optimize = optimize, | 272 | .optimize = optimize, |
| 266 | }); | 273 | }); |
| 267 | canon_data.addAnonymousImport("canon", .{ .root_source_file = canon_gen_out }); | 274 | canon_data.addAnonymousImport("canon", .{ .root_source_file = canon_gen_out }); |
| 275 | canon_data.addImport("magic", magic); | ||
| 268 | 276 | ||
| 269 | const canon_data_t = b.addTest(.{ | 277 | const canon_data_t = b.addTest(.{ |
| 270 | .name = "canon_data", | 278 | .name = "canon_data", |
| @@ -280,6 +288,7 @@ pub fn build(b: *std.Build) void { | |||
| 280 | .optimize = optimize, | 288 | .optimize = optimize, |
| 281 | }); | 289 | }); |
| 282 | compat_data.addAnonymousImport("compat", .{ .root_source_file = compat_gen_out }); | 290 | compat_data.addAnonymousImport("compat", .{ .root_source_file = compat_gen_out }); |
| 291 | compat_data.addImport("magic", magic); | ||
| 283 | 292 | ||
| 284 | const compat_data_t = b.addTest(.{ | 293 | const compat_data_t = b.addTest(.{ |
| 285 | .name = "compat_data", | 294 | .name = "compat_data", |