summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.