From e7c2abbe28efbb5ae7f04e6c1ac6578a6d75bb67 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 1 Feb 2024 18:20:13 -0700 Subject: [PATCH] addPaths(step) -> addPaths(mod) Signed-off-by: Stephen Gutekanst --- build.zig | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build.zig b/build.zig index 77f51f95..82a16125 100644 --- a/build.zig +++ b/build.zig @@ -10,20 +10,13 @@ pub fn build(b: *std.Build) void { .target = target, .optimize = optimize, }); - addPaths(lib); // just for testing - addPathsToModule(&lib.root_module); // just for testing + addPaths(&lib.root_module); // just for testing lib.linkLibC(); lib.installHeadersDirectory("include", "."); b.installArtifact(lib); } -pub fn addPaths(step: *std.Build.Step.Compile) void { - step.addSystemFrameworkPath(.{ .path = sdkPath("/Frameworks") }); - step.addSystemIncludePath(.{ .path = sdkPath("/include") }); - step.addLibraryPath(.{ .path = sdkPath("/lib") }); -} - -pub fn addPathsToModule(mod: *std.Build.Module) void { +pub fn addPaths(mod: *std.Build.Module) void { mod.addSystemFrameworkPath(.{ .path = sdkPath("/Frameworks") }); mod.addSystemIncludePath(.{ .path = sdkPath("/include") }); mod.addLibraryPath(.{ .path = sdkPath("/lib") });