diff options
| author | 2023-09-20 09:40:07 -0400 | |
|---|---|---|
| committer | 2023-09-20 16:13:51 +0200 | |
| commit | 63fbc664093f282743a76a89d43e69a20905ca90 (patch) | |
| tree | 55c069020f4ccb357f61b54dcbbfa7d3f787c23c | |
| parent | Fix build for recent zig C naming changes (diff) | |
| download | zig-sqlite-63fbc664093f282743a76a89d43e69a20905ca90.tar.gz zig-sqlite-63fbc664093f282743a76a89d43e69a20905ca90.tar.xz zig-sqlite-63fbc664093f282743a76a89d43e69a20905ca90.zip | |
Fix test build step for various plaforms
| -rw-r--r-- | build.zig | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -254,6 +254,7 @@ pub fn build(b: *std.Build) !void { | |||
| 254 | .root_source_file = .{ .path = "sqlite.zig" }, | 254 | .root_source_file = .{ .path = "sqlite.zig" }, |
| 255 | .single_threaded = test_target.single_threaded, | 255 | .single_threaded = test_target.single_threaded, |
| 256 | }); | 256 | }); |
| 257 | const run_tests = b.addRunArtifact(tests); | ||
| 257 | 258 | ||
| 258 | if (bundled) { | 259 | if (bundled) { |
| 259 | const lib = b.addStaticLibrary(.{ | 260 | const lib = b.addStaticLibrary(.{ |
| @@ -287,7 +288,7 @@ pub fn build(b: *std.Build) !void { | |||
| 287 | tests_options.addOption(bool, "in_memory", in_memory); | 288 | tests_options.addOption(bool, "in_memory", in_memory); |
| 288 | tests_options.addOption(?[]const u8, "dbfile", dbfile); | 289 | tests_options.addOption(?[]const u8, "dbfile", dbfile); |
| 289 | 290 | ||
| 290 | test_step.dependOn(&tests.step); | 291 | test_step.dependOn(&run_tests.step); |
| 291 | } | 292 | } |
| 292 | 293 | ||
| 293 | // Fuzzing | 294 | // Fuzzing |