aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vaughan Rouesnel <vrouesnel@gmail.com> 2022-11-12 01:45:27 +0100
committerGravatar Vaughan Rouesnel <vrouesnel@gmail.com> 2022-11-12 01:45:27 +0100
commit0cf1a498a3590d7db70d2fb0c9cc65f0b683f9cf (patch)
tree94892ede92d94158245268984104399fc40b7cb0
parent379e1189e378a675b6338ff8c0cd92db97556195 (diff)
downloadbun-0cf1a498a3590d7db70d2fb0c9cc65f0b683f9cf.tar.gz
bun-0cf1a498a3590d7db70d2fb0c9cc65f0b683f9cf.tar.zst
bun-0cf1a498a3590d7db70d2fb0c9cc65f0b683f9cf.zip
Fix: addIncludeDir -> addIncludeDir
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 40f770e0b..6b46ca40a 100644
--- a/build.zig
+++ b/build.zig
@@ -6,13 +6,13 @@ fn pkgPath(comptime out: []const u8) std.build.FileSource {
return .{ .path = outpath };
}
pub fn addPicoHTTP(step: *std.build.LibExeObjStep, comptime with_obj: bool) void {
- step.addIncludeDir("src/deps");
+ step.addIncludePath("src/deps");
if (with_obj) {
step.addObjectFile("src/deps/picohttpparser.o");
}
- step.addIncludeDir("src/deps");
+ step.addIncludePath("src/deps");
if (with_obj) {
step.addObjectFile(panicIfNotFound("src/deps/picohttpparser.o"));
@@ -595,7 +595,7 @@ pub fn linkObjectFiles(b: *std.build.Builder, obj: *std.build.LibExeObjStep, tar
for (dirs_to_search.slice()) |deps_path| {
var deps_dir = std.fs.cwd().openDir(deps_path, .{ .iterate = true }) catch continue;
var iterator = deps_dir.iterate();
- obj.addIncludeDir(deps_path);
+ obj.addIncludePath(deps_path);
obj.addLibPath(deps_path);
while (iterator.next() catch null) |entr| {