summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2025-08-10 20:05:08 +0200
committerGravatar Vincent Rischmann2025-08-10 20:05:09 +0200
commit7cdfa449a92b9ea46ce0b2d265650a5989e5a3d3 (patch)
tree33823a6bcece3b67679085f532415bc122cf2a86 /build.zig
parentupdate readme (diff)
downloadzig-sqlite-7cdfa449a92b9ea46ce0b2d265650a5989e5a3d3.tar.gz
zig-sqlite-7cdfa449a92b9ea46ce0b2d265650a5989e5a3d3.tar.xz
zig-sqlite-7cdfa449a92b9ea46ce0b2d265650a5989e5a3d3.zip
build: disable the zigcrypto tests
The loadable extension mechanism is broken with the latest Zig master; will be re-enabled at some point
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig66
1 files changed, 33 insertions, 33 deletions
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 {
176 // Main library and module 176 // Main library and module
177 // 177 //
178 178
179 const sqlite_lib, const sqlite_mod = blk: { 179 //\ const sqlite_lib, const sqlite_mod = blk: {
180 const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with); 180 //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .with);
181 181 //\
182 const mod = b.addModule("sqlite", .{ 182 //\ const mod = b.addModule("sqlite", .{
183 .root_source_file = b.path("sqlite.zig"), 183 //\ .root_source_file = b.path("sqlite.zig"),
184 .link_libc = true, 184 //\ .link_libc = true,
185 }); 185 //\ });
186 mod.addIncludePath(b.path("c")); 186 //\ mod.addIncludePath(b.path("c"));
187 mod.addIncludePath(sqlite_dep.path(".")); 187 //\ mod.addIncludePath(sqlite_dep.path("."));
188 mod.linkLibrary(lib); 188 //\ mod.linkLibrary(lib);
189 189 //\
190 break :blk .{ lib, mod }; 190 //\ break :blk .{ lib, mod };
191 }; 191 //\ };
192 b.installArtifact(sqlite_lib); 192 //\ b.installArtifact(sqlite_lib);
193 193 //\
194 const sqliteext_mod = blk: { 194 //\ const sqliteext_mod = blk: {
195 const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without); 195 //\ const lib = makeSQLiteLib(b, sqlite_dep, c_flags, target, optimize, .without);
196 196 //\
197 const mod = b.addModule("sqliteext", .{ 197 //\ const mod = b.addModule("sqliteext", .{
198 .root_source_file = b.path("sqlite.zig"), 198 //\ .root_source_file = b.path("sqlite.zig"),
199 .link_libc = true, 199 //\ .link_libc = true,
200 }); 200 //\ });
201 mod.addIncludePath(b.path("c")); 201 //\ mod.addIncludePath(b.path("c"));
202 mod.linkLibrary(lib); 202 //\ mod.linkLibrary(lib);
203 203 //\
204 break :blk mod; 204 //\ break :blk mod;
205 }; 205 //\ };
206 206
207 // 207 //
208 // Tests 208 // Tests
@@ -256,12 +256,12 @@ pub fn build(b: *std.Build) !void {
256 256
257 // This builds an example shared library with the extension and a binary that tests it. 257 // This builds an example shared library with the extension and a binary that tests it.
258 258
259 const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize); 259 //\ const zigcrypto_install_artifact = addZigcrypto(b, sqliteext_mod, target, optimize);
260 test_step.dependOn(&zigcrypto_install_artifact.step); 260 //\ test_step.dependOn(&zigcrypto_install_artifact.step);
261 261 //\
262 const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize); 262 //\ const zigcrypto_test_run = addZigcryptoTestRun(b, sqlite_mod, target, optimize);
263 zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step); 263 //\ zigcrypto_test_run.step.dependOn(&zigcrypto_install_artifact.step);
264 test_step.dependOn(&zigcrypto_test_run.step); 264 //\ test_step.dependOn(&zigcrypto_test_run.step);
265 265
266 // 266 //
267 // Tools 267 // Tools