summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--build.zig5
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index b57510a..8fabb08 100644
--- a/README.md
+++ b/README.md
@@ -72,7 +72,8 @@ If you want to use the bundled sqlite source code file, first you need to add it
72 72
73```zig 73```zig
74const sqlite = b.addStaticLibrary("sqlite", null); 74const sqlite = b.addStaticLibrary("sqlite", null);
75sqlite.addCSourceFile("third_party/zig-sqlite/sqlite3.c", &[_][]const u8{"-std=c99"}); 75sqlite.addCSourceFile("third_party/zig-sqlite/c/sqlite3.c", &[_][]const u8{"-std=c99"});
76sqlite.addIncludeDir("third_party/zig-sqlite/c");
76sqlite.linkLibC(); 77sqlite.linkLibC();
77``` 78```
78 79
diff --git a/build.zig b/build.zig
index 678e368..e4678be 100644
--- a/build.zig
+++ b/build.zig
@@ -1,4 +1,5 @@
1const std = @import("std"); 1const std = @import("std");
2const builtin = @import("builtin");
2 3
3var sqlite3: ?*std.build.LibExeObjStep = null; 4var sqlite3: ?*std.build.LibExeObjStep = null;
4 5
@@ -44,8 +45,8 @@ const TestTarget = struct {
44 bundled: bool, 45 bundled: bool,
45}; 46};
46 47
47const all_test_targets = switch (std.Target.current.cpu.arch) { 48const all_test_targets = switch (builtin.target.cpu.arch) {
48 .x86_64 => switch (std.Target.current.os.tag) { 49 .x86_64 => switch (builtin.target.os.tag) {
49 .linux => [_]TestTarget{ 50 .linux => [_]TestTarget{
50 TestTarget{ 51 TestTarget{
51 .target = .{}, 52 .target = .{},