fix curl dependency issue with zlib

This commit is contained in:
Muki Kiboigo
2025-11-17 07:02:53 -08:00
parent 8670938397
commit c1c0edab9f

View File

@@ -87,7 +87,7 @@ pub fn build(b: *Build) !void {
.sanitize_c = enable_csan, .sanitize_c = enable_csan,
.sanitize_thread = enable_tsan, .sanitize_thread = enable_tsan,
.imports = &.{ .imports = &.{
.{.name = "lightpanda", .module = lightpanda_module}, .{ .name = "lightpanda", .module = lightpanda_module },
}, },
}), }),
}); });
@@ -125,7 +125,7 @@ pub fn build(b: *Build) !void {
.sanitize_c = enable_csan, .sanitize_c = enable_csan,
.sanitize_thread = enable_tsan, .sanitize_thread = enable_tsan,
.imports = &.{ .imports = &.{
.{.name = "lightpanda", .module = lightpanda_module}, .{ .name = "lightpanda", .module = lightpanda_module },
}, },
}), }),
}); });
@@ -151,7 +151,7 @@ pub fn build(b: *Build) !void {
.sanitize_c = enable_csan, .sanitize_c = enable_csan,
.sanitize_thread = enable_tsan, .sanitize_thread = enable_tsan,
.imports = &.{ .imports = &.{
.{.name = "lightpanda", .module = lightpanda_module}, .{ .name = "lightpanda", .module = lightpanda_module },
}, },
}), }),
}); });
@@ -658,6 +658,8 @@ fn buildCurl(b: *Build, m: *Build.Module) !void {
curl.addIncludePath(b.path(root ++ "lib")); curl.addIncludePath(b.path(root ++ "lib"));
curl.addIncludePath(b.path(root ++ "include")); curl.addIncludePath(b.path(root ++ "include"));
curl.addIncludePath(b.path("vendor/zlib"));
curl.addCSourceFiles(.{ curl.addCSourceFiles(.{
.flags = &.{}, .flags = &.{},
.files = &.{ .files = &.{