diff options
| author | 2023-08-05 08:45:05 -0700 | |
|---|---|---|
| committer | 2023-08-05 18:04:40 +0200 | |
| commit | a1ce864182656b39911f86bbe0e4090669af8a79 (patch) | |
| tree | 656b48f167cc204631b973c13999666cafbf7ef7 | |
| parent | build.zig.zon: indent (diff) | |
| download | zig-sqlite-a1ce864182656b39911f86bbe0e4090669af8a79.tar.gz zig-sqlite-a1ce864182656b39911f86bbe0e4090669af8a79.tar.xz zig-sqlite-a1ce864182656b39911f86bbe0e4090669af8a79.zip | |
build.zig: use b.addModule rather than .createModule and .modules.put
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -184,8 +184,7 @@ 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" } }); | 187 | _ = b.addModule("sqlite", .{ .source_file = .{ .path = "sqlite.zig" } }); |
| 188 | try b.modules.put(b.dupe("sqlite"), sqlite_module); | ||
| 189 | 188 | ||
| 190 | const sqlite_lib = b.addStaticLibrary(.{ | 189 | const sqlite_lib = b.addStaticLibrary(.{ |
| 191 | .name = "sqlite", | 190 | .name = "sqlite", |