summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar okamo2022-08-16 22:25:22 +0900
committerGravatar Vincent Rischmann2022-08-17 09:20:50 +0200
commitec6987ce6375556f3d40d1a38405855a70e1975c (patch)
tree7fbf6504b75665e5835ddb86ca83783cb3f9339d
parentmake `c` public again (diff)
downloadzig-sqlite-ec6987ce6375556f3d40d1a38405855a70e1975c.tar.gz
zig-sqlite-ec6987ce6375556f3d40d1a38405855a70e1975c.tar.xz
zig-sqlite-ec6987ce6375556f3d40d1a38405855a70e1975c.zip
change a way to use bundled sqlite3
Diffstat (limited to '')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4508607..8a86afb 100644
--- a/README.md
+++ b/README.md
@@ -108,7 +108,6 @@ If you want to use the bundled sqlite source code file, first you need to add it
108```zig 108```zig
109const sqlite = b.addStaticLibrary("sqlite", null); 109const sqlite = b.addStaticLibrary("sqlite", null);
110sqlite.addCSourceFile("third_party/zig-sqlite/c/sqlite3.c", &[_][]const u8{"-std=c99"}); 110sqlite.addCSourceFile("third_party/zig-sqlite/c/sqlite3.c", &[_][]const u8{"-std=c99"});
111sqlite.addIncludeDir("third_party/zig-sqlite/c");
112sqlite.linkLibC(); 111sqlite.linkLibC();
113``` 112```
114 113
@@ -120,6 +119,7 @@ Now it's just a matter of linking your `build.zig` target(s) to this library ins
120exe.linkLibC(); 119exe.linkLibC();
121exe.linkLibrary(sqlite); 120exe.linkLibrary(sqlite);
122exe.addPackage(.{ .name = "sqlite", .path = "third_party/zig-sqlite/sqlite.zig" }); 121exe.addPackage(.{ .name = "sqlite", .path = "third_party/zig-sqlite/sqlite.zig" });
122exe.addIncludeDir("third_party/zig-sqlite/c");
123``` 123```
124 124
125If you're building with glibc you must make sure that the version used is at least 2.28. 125If you're building with glibc you must make sure that the version used is at least 2.28.