diff options
| author | 2023-08-04 19:05:39 -0700 | |
|---|---|---|
| committer | 2023-08-05 18:04:40 +0200 | |
| commit | 55f796bf435aec303e89450e53d75ab55bc39b37 (patch) | |
| tree | 4ccf7fc44ed21f31de73bd0dc31aba85ce7cbee5 /build.zig | |
| parent | build: fix for latest zig (diff) | |
| download | zig-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
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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 |