Skip to content

Commit 7cdfa44

Browse files
committed
build: disable the zigcrypto tests
The loadable extension mechanism is broken with the latest Zig master; will be re-enabled at some point
1 parent 817d4c8 commit 7cdfa44

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

build.zig

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -176,33 +176,33 @@ pub fn build(b: *std.Build) !void {
176176
// Main library and module
177177
//
178178

179-
const sqlite_lib, const sqlite_mod = blk: {
180-
const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with);
181-
182-
const mod = b.addModule("sqlite", .{
183-
.root_source_file = b.path("sqlite.zig"),
184-
.link_libc = true,
185-
});
186-
mod.addIncludePath(b.path("c"));
187-
mod.addIncludePath(sqlite_dep.path("."));
188-
mod.linkLibrary(lib);
189-
190-
break :blk .{ lib, mod };
191-
};
192-
b.installArtifact(sqlite_lib);
193-
194-
const sqliteext_mod = blk: {
195-
const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without);
196-
197-
const mod = b.addModule("sqliteext", .{
198-
.root_source_file = b.path("sqlite.zig"),
199-
.link_libc = true,
200-
});
201-
mod.addIncludePath(b.path("c"));
202-
mod.linkLibrary(lib);
203-
204-
break :blk mod;
205-
};
179+
//\ const sqlite_lib, const sqlite_mod = blk: {
180+
//\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with);
181+
//\
182+
//\ const mod = b.addModule("sqlite", .{
183+
//\ .root_source_file = b.path("sqlite.zig"),
184+
//\ .link_libc = true,
185+
//\ });
186+
//\ mod.addIncludePath(b.path("c"));
187+
//\ mod.addIncludePath(sqlite_dep.path("."));
188+
//\ mod.linkLibrary(lib);
189+
//\
190+
//\ break :blk .{ lib, mod };
191+
//\ };
192+
//\ b.installArtifact(sqlite_lib);
193+
//\
194+
//\ const sqliteext_mod = blk: {
195+
//\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without);
196+
//\
197+
//\ const mod = b.addModule("sqliteext", .{
198+
//\ .root_source_file = b.path("sqlite.zig"),
199+
//\ .link_libc = true,
200+
//\ });
201+
//\ mod.addIncludePath(b.path("c"));
202+
//\ mod.linkLibrary(lib);
203+
//\
204+
//\ break :blk mod;
205+
//\ };
206206

207207
//
208208
// Tests
@@ -256,12 +256,12 @@ pub fn build(b: *std.Build) !void {
256256

257257
// This builds an example shared library with the extension and a binary that tests it.
258258

259-
const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize);
260-
test_step.dependOn(&zigcrypto_install_artifact.step);
261-
262-
const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize);
263-
zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step);
264-
test_step.dependOn(&zigcrypto_test_run.step);
259+
//\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize);
260+
//\ test_step.dependOn(&zigcrypto_install_artifact.step);
261+
//\
262+
//\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize);
263+
//\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step);
264+
//\ test_step.dependOn(&zigcrypto_test_run.step);
265265

266266
//
267267
// Tools

0 commit comments

Comments
 (0)