diff options
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 |
| 109 | const sqlite = b.addStaticLibrary("sqlite", null); | 109 | const sqlite = b.addStaticLibrary("sqlite", null); |
| 110 | sqlite.addCSourceFile("third_party/zig-sqlite/c/sqlite3.c", &[_][]const u8{"-std=c99"}); | 110 | sqlite.addCSourceFile("third_party/zig-sqlite/c/sqlite3.c", &[_][]const u8{"-std=c99"}); |
| 111 | sqlite.addIncludeDir("third_party/zig-sqlite/c"); | ||
| 112 | sqlite.linkLibC(); | 111 | sqlite.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 | |||
| 120 | exe.linkLibC(); | 119 | exe.linkLibC(); |
| 121 | exe.linkLibrary(sqlite); | 120 | exe.linkLibrary(sqlite); |
| 122 | exe.addPackage(.{ .name = "sqlite", .path = "third_party/zig-sqlite/sqlite.zig" }); | 121 | exe.addPackage(.{ .name = "sqlite", .path = "third_party/zig-sqlite/sqlite.zig" }); |
| 122 | exe.addIncludeDir("third_party/zig-sqlite/c"); | ||
| 123 | ``` | 123 | ``` |
| 124 | 124 | ||
| 125 | If you're building with glibc you must make sure that the version used is at least 2.28. | 125 | If you're building with glibc you must make sure that the version used is at least 2.28. |