diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 11:29:28 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 11:29:40 -0300 |
| commit | 3d60aa05ec1a6f9ed535186be6c6c2850c71b24d (patch) | |
| tree | e55587fb9d1ec5f55c55fa81b7d81f3a91bf5375 /build | |
| parent | add0837dc1927389096cbaaf65b7e1a42028eafc (diff) | |
| parent | 8723462d8e02bc9d78b5004de38b910e83540575 (diff) | |
| download | pardes-3d60aa05ec1a6f9ed535186be6c6c2850c71b24d.tar.gz pardes-3d60aa05ec1a6f9ed535186be6c6c2850c71b24d.zip | |
merge: L2a (tags, grips, band, notice onto chrome) + M2's fix + FP (PDF leaks, spawn stop, PDF hits)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'build')
| -rw-r--r-- | build/tests.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build/tests.zig b/build/tests.zig index c35857f7..05bdc2b6 100644 --- a/build/tests.zig +++ b/build/tests.zig @@ -111,18 +111,20 @@ pub fn add(b: *std.Build, c: struct { const session_options = b.addOptions(); session_options.addOptionPath("lspmock", c.lspmock.getEmittedBin()); var fake_addon_lib: ?*std.Build.Step.Compile = null; - // The fake addon (addons/fake/fake.c) and three copies of it built - // wrong, which the loader must refuse (test/behaviour/addons.zig). + // The fake addon (addons/fake/fake.c), copies of it built wrong, which + // the loader must refuse, and one whose head says ABI 3.3, which it + // takes (test/behaviour/addons.zig). for ([_]struct { []const u8, []const u8 }{ .{ "fake_addon", "-DFAKE_PLAIN" }, .{ "fake_addon_abi", "-DFAKE_ABI=0x20002" }, .{ "fake_addon_no_export", "-DFAKE_NO_EXPORT" }, .{ "fake_addon_core_word", "-DFAKE_WORD=\"Save\"" }, .{ "fake_addon_no_dump", "-DFAKE_NO_DUMP" }, + .{ "fake_addon_old", "-DFAKE_ABI=0x30003" }, }) |variant| { const lib = b.addLibrary(.{ .name = variant[0], .linkage = .dynamic, .root_module = b.createModule(.{ .target = c.target, .optimize = c.optimize, .link_libc = true }) }); lib.root_module.addIncludePath(b.path("abi")); - const name_flag = if (std.mem.eql(u8, variant[0], "fake_addon_abi")) "-DFAKE_NAME=\"fakeabi\"" else if (std.mem.eql(u8, variant[0], "fake_addon_core_word")) "-DFAKE_NAME=\"fakeword\"" else "-DFAKE_PLAIN"; + const name_flag = if (std.mem.eql(u8, variant[0], "fake_addon_abi")) "-DFAKE_NAME=\"fakeabi\"" else if (std.mem.eql(u8, variant[0], "fake_addon_core_word")) "-DFAKE_NAME=\"fakeword\"" else if (std.mem.eql(u8, variant[0], "fake_addon_old")) "-DFAKE_NAME=\"fakeold\"" else "-DFAKE_PLAIN"; // The header is the whole contract: it compiles clean under every warning. lib.root_module.addCSourceFile(.{ .file = b.path("addons/fake/fake.c"), .flags = &.{ "-std=c11", "-Wall", "-Wextra", "-Werror", "-Wno-override-init", variant[1], name_flag } }); session_options.addOptionPath(variant[0], lib.getEmittedBin()); |
