summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Kitty-Cricket Piapiac2023-08-04 19:05:39 -0700
committerGravatar Vincent Rischmann2023-08-05 18:04:40 +0200
commit55f796bf435aec303e89450e53d75ab55bc39b37 (patch)
tree4ccf7fc44ed21f31de73bd0dc31aba85ce7cbee5
parentbuild: fix for latest zig (diff)
downloadzig-sqlite-55f796bf435aec303e89450e53d75ab55bc39b37.tar.gz
zig-sqlite-55f796bf435aec303e89450e53d75ab55bc39b37.tar.xz
zig-sqlite-55f796bf435aec303e89450e53d75ab55bc39b37.zip
build.zig: register module
this is so it can be referenced by the package manager
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index e00e4d9..a604492 100644
--- a/build.zig
+++ b/build.zig
@@ -184,6 +184,9 @@ pub fn build(b: *std.Build) !void {
184 const target = b.standardTargetOptions(.{}); 184 const target = b.standardTargetOptions(.{});
185 const optimize = b.standardOptimizeOption(.{}); 185 const optimize = b.standardOptimizeOption(.{});
186 186
187 var sqlite_module = b.createModule(.{ .source_file = .{ .path = "sqlite.zig" } });
188 try b.modules.put(b.dupe("sqlite"), sqlite_module);
189
187 // Tool to preprocess the sqlite header files. 190 // Tool to preprocess the sqlite header files.
188 // 191 //
189 // Due to limitations of translate-c the standard header files can't be used for building loadable extensions 192 // Due to limitations of translate-c the standard header files can't be used for building loadable extensions