From c1c0edab9f120579be7e4c2e9e273157691a48b9 Mon Sep 17 00:00:00 2001 From: Muki Kiboigo Date: Mon, 17 Nov 2025 07:02:53 -0800 Subject: [PATCH] fix curl dependency issue with zlib --- build.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 9f627169..8b7fa222 100644 --- a/build.zig +++ b/build.zig @@ -87,7 +87,7 @@ pub fn build(b: *Build) !void { .sanitize_c = enable_csan, .sanitize_thread = enable_tsan, .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_thread = enable_tsan, .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_thread = enable_tsan, .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 ++ "include")); + curl.addIncludePath(b.path("vendor/zlib")); + curl.addCSourceFiles(.{ .flags = &.{}, .files = &.{