Skip to content

Commit

Permalink
addPaths(step) -> addPaths(mod); helps hexops/mach#1154
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Feb 2, 2024
1 parent bfe6d00 commit 2b2a698
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});
addPaths(main_tests);
addPaths(&main_tests.root_module);
main_tests.linkFramework("Foundation");

const test_step = b.step("test", "Run library tests");
test_step.dependOn(&b.addRunArtifact(main_tests).step);
}

pub fn addPaths(step: *std.Build.Step.Compile) void {
@import("xcode_frameworks").addPaths(step);
pub fn addPaths(mod: *std.Build.Module) void {
@import("xcode_frameworks").addPaths(mod);
}
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
.dependencies = .{
.xcode_frameworks = .{
.url = "https://pkg.machengine.org/xcode-frameworks/ff1f5c15120b65504d8feccca8015a7e96ed580c.tar.gz",
.hash = "12207bc2707695102c636c26b60343e634127ee4d6e23210b1ae1664b2b2fea6076f",
.url = "https://pkg.machengine.org/xcode-frameworks/e7c2abbe28efbb5ae7f04e6c1ac6578a6d75bb67.tar.gz",
.hash = "1220432df3c74dc28bd6cc299e5c8317bc65a95219e6ebf40450c157d8c7a3ac54c0",
},
},
}

0 comments on commit 2b2a698

Please sign in to comment.