Skip to content

Commit

Permalink
update to latest build API
Browse files Browse the repository at this point in the history
  • Loading branch information
alichraghi authored and slimsag committed Jan 9, 2024
1 parent 211523c commit 76148f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {

const lib = b.addStaticLibrary(.{
.name = "xcode-frameworks",
.root_source_file = .{ .path = b.addWriteFiles().add("empty.c", "") },
.root_source_file = b.addWriteFiles().add("empty.c", ""),
.target = target,
.optimize = optimize,
});
Expand All @@ -16,7 +16,7 @@ pub fn build(b: *std.Build) void {
b.installArtifact(lib);
}

pub fn addPaths(step: *std.build.CompileStep) void {
pub fn addPaths(step: *std.Build.Step.Compile) void {
step.addSystemFrameworkPath(.{ .path = sdkPath("/Frameworks") });
step.addSystemIncludePath(.{ .path = sdkPath("/include") });
step.addLibraryPath(.{ .path = sdkPath("/lib") });
Expand Down

0 comments on commit 76148f9

Please sign in to comment.