Skip to content

Commit

Permalink
Merge pull request #6 from Sh4pe/readme_improvements
Browse files Browse the repository at this point in the history
Add include path on zqlite module rather than exe in build.zig
  • Loading branch information
karlseguin authored Jul 29, 2024
2 parents 68d5588 + 013edd0 commit f7f310d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const zqlite = b.dependency("zqlite", .{
.target = target,
.optimize = optimize,
});
zqlite.module("zqlite").addIncludePath(b.path("lib/sqlite3/"));
exe.addCSourceFile(.{
.file = b.path("lib/sqlite3/sqlite3.c"),
.flags = &[_][]const u8{
Expand All @@ -86,7 +87,6 @@ exe.addCSourceFile(.{
"-DHAVE_USLEEP=0",
},
});
exe.addIncludePath(b.path("lib/sqlite3/"));
exe.root_module.addImport("zqlite", zqlite.module("zqlite"));
```

Expand Down

0 comments on commit f7f310d

Please sign in to comment.