From 7cdfa449a92b9ea46ce0b2d265650a5989e5a3d3 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 10 Aug 2025 20:05:08 +0200 Subject: build: disable the zigcrypto tests The loadable extension mechanism is broken with the latest Zig master; will be re-enabled at some point --- build.zig | 66 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index f8d9536..e61d2f0 100644 --- a/build.zig +++ b/build.zig @@ -176,33 +176,33 @@ pub fn build(b: *std.Build) !void { // Main library and module // - const sqlite_lib, const sqlite_mod = blk: { - const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with); - - const mod = b.addModule("sqlite", .{ - .root_source_file = b.path("sqlite.zig"), - .link_libc = true, - }); - mod.addIncludePath(b.path("c")); - mod.addIncludePath(sqlite_dep.path(".")); - mod.linkLibrary(lib); - - break :blk .{ lib, mod }; - }; - b.installArtifact(sqlite_lib); - - const sqliteext_mod = blk: { - const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); - - const mod = b.addModule("sqliteext", .{ - .root_source_file = b.path("sqlite.zig"), - .link_libc = true, - }); - mod.addIncludePath(b.path("c")); - mod.linkLibrary(lib); - - break :blk mod; - }; + //\ const sqlite_lib, const sqlite_mod = blk: { + //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with); + //\ + //\ const mod = b.addModule("sqlite", .{ + //\ .root_source_file = b.path("sqlite.zig"), + //\ .link_libc = true, + //\ }); + //\ mod.addIncludePath(b.path("c")); + //\ mod.addIncludePath(sqlite_dep.path(".")); + //\ mod.linkLibrary(lib); + //\ + //\ break :blk .{ lib, mod }; + //\ }; + //\ b.installArtifact(sqlite_lib); + //\ + //\ const sqliteext_mod = blk: { + //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); + //\ + //\ const mod = b.addModule("sqliteext", .{ + //\ .root_source_file = b.path("sqlite.zig"), + //\ .link_libc = true, + //\ }); + //\ mod.addIncludePath(b.path("c")); + //\ mod.linkLibrary(lib); + //\ + //\ break :blk mod; + //\ }; // // Tests @@ -256,12 +256,12 @@ pub fn build(b: *std.Build) !void { // This builds an example shared library with the extension and a binary that tests it. - const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); - test_step.dependOn(&zigcrypto_install_artifact.step); - - const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); - zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); - test_step.dependOn(&zigcrypto_test_run.step); + //\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); + //\ test_step.dependOn(&zigcrypto_install_artifact.step); + //\ + //\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); + //\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); + //\ test_step.dependOn(&zigcrypto_test_run.step); // // Tools -- cgit v1.2.3