From b9300d489f484d04fa7b5724b673171492f9f60a Mon Sep 17 00:00:00 2001 From: Michal Skorczak Date: Fri, 6 Dec 2024 18:14:58 +0000 Subject: [PATCH] Updated: one library didn't work, so we're trying another! --- build.zig | 10 +++++----- build.zig.zon | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.zig b/build.zig index fbdeded..32e15df 100644 --- a/build.zig +++ b/build.zig @@ -44,15 +44,15 @@ pub fn build(b: *std.Build) void { exe.root_module.addImport("zap", zap.module("zap")); - const sqlite = b.dependency("sqlite", .{ + + const zqlite = b.dependency("zqlite", .{ .target = target, .optimize = optimize, }); - exe.root_module.addImport("sqlite", sqlite.module("sqlite")); - - // links the bundled sqlite3, so leave this out if you link the system one - exe.linkLibrary(sqlite.artifact("sqlite")); + exe.linkLibC(); + exe.linkSystemLibrary("sqlite3"); + exe.root_module.addImport("zqlite", zqlite.module("zqlite")); // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default diff --git a/build.zig.zon b/build.zig.zon index c54d53c..6a61705 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -27,9 +27,9 @@ .url = "git+https://github.com/zigzap/zap?ref=v0.9.1#ae5c9278335d8e1133cd6d22707323dda712e120", .hash = "12200223d76ab6cd32f75bc2e31463b0b429bb5b2b6fa4ce8f68dea494ca1ec3398b", }, - .sqlite = .{ - .url = "https://github.com/vrischmann/zig-sqlite/archive/712da48cb7f48358ceaa925887c83b6d93887503.tar.gz", - .hash = "1220532d0921c126beed4a9dffe8fac0aae4e7be7b2444d95e4df643da7efcc0ecd5" + .zqlite = .{ + .url = "git+https://github.com/karlseguin/zqlite.zig?ref=master#9101f7a731bb5fbd5df2d9fe9e3cd53091a39e76", + .hash = "1220045d9f75ff2f88d546f66f68d55425b2205d0932b6991410925f50fd180fa516", }, },