File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ pub fn build(b: *std.Build) void {
55 const dependencies = [_ ][]const u8 {
66 "clap" ,
77 "regex" ,
8+ "curl" ,
89 };
910
1011 const target = b .standardTargetOptions (.{});
@@ -26,10 +27,6 @@ pub fn build(b: *std.Build) void {
2627 exe .root_module .addImport (dependency , dep .module (dependency ));
2728 }
2829
29- // Deps that break the easy import flow
30- const d = b .dependency ("curl" , .{ .target = target , .optimize = optimize });
31- exe .root_module .addImport ("curl" , d .module ("curl" ));
32-
3330 exe .linkLibC ();
3431
3532 b .installArtifact (exe );
@@ -72,7 +69,7 @@ pub fn build(b: *std.Build) void {
7269
7370 // Add dependencies to individual test artifacts
7471 for (dependencies ) | dependency | {
75- const dep = b .dependency (dependency , .{});
72+ const dep = b .dependency (dependency , .{ . target = target , . optimize = optimize });
7673 test_artifact .root_module .addImport (dependency , dep .module (dependency ));
7774 }
7875
You can’t perform that action at this time.
0 commit comments