summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-01-31 17:08:27 +0100
committerGravatar GitHub2021-01-31 17:08:27 +0100
commitf452be6d29c7c86645adecdceebe9686c4cba48f (patch)
treeb6ee271ed1fc4a9edad638ebe2c20b8989d2469e /build.zig
parentadd the Db.getLastInsertRowID method (diff)
parentadd Blob.reopen (diff)
downloadzig-sqlite-f452be6d29c7c86645adecdceebe9686c4cba48f.tar.gz
zig-sqlite-f452be6d29c7c86645adecdceebe9686c4cba48f.tar.xz
zig-sqlite-f452be6d29c7c86645adecdceebe9686c4cba48f.zip
Merge pull request #10 from vrischmann/incremental-blob-io
implement incremental blob io
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index b48f43d..0a715b0 100644
--- a/build.zig
+++ b/build.zig
@@ -17,6 +17,7 @@ pub fn build(b: *std.build.Builder) void {
17 const mode = b.standardReleaseOptions(); 17 const mode = b.standardReleaseOptions();
18 18
19 const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory (default true)") orelse true; 19 const in_memory = b.option(bool, "in_memory", "Should the tests run with sqlite in memory (default true)") orelse true;
20 const dbfile = b.option([]const u8, "dbfile", "Always use this database file instead of a temporary one");
20 const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library (default false)") orelse false; 21 const use_bundled = b.option(bool, "use_bundled", "Use the bundled sqlite3 source instead of linking the system library (default false)") orelse false;
21 22
22 // Build sqlite from source if asked 23 // Build sqlite from source if asked
@@ -43,6 +44,7 @@ pub fn build(b: *std.build.Builder) void {
43 main_tests.setTarget(target); 44 main_tests.setTarget(target);
44 main_tests.setBuildMode(mode); 45 main_tests.setBuildMode(mode);
45 main_tests.addBuildOption(bool, "in_memory", in_memory); 46 main_tests.addBuildOption(bool, "in_memory", in_memory);
47 main_tests.addBuildOption(?[]const u8, "dbfile", dbfile);
46 48
47 const test_step = b.step("test", "Run library tests"); 49 const test_step = b.step("test", "Run library tests");
48 test_step.dependOn(&main_tests.step); 50 test_step.dependOn(&main_tests.step);