From 74e2cdaf3a7f9485155bd22ea8e6bc5442d3cddb Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 14 Jan 2024 05:39:16 -0700 Subject: [PATCH] add addLibraryPathToModule Signed-off-by: Stephen Gutekanst --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index cfa463f..ba4ba92 100644 --- a/build.zig +++ b/build.zig @@ -26,6 +26,10 @@ pub fn addLibraryPath(step: *std.Build.Step.Compile) void { step.addLibraryPath(.{ .path = sdkPath("/x86_64") }); } +pub fn addLibraryPathToModule(module: *std.Build.Module) void { + module.addLibraryPath(.{ .path = sdkPath("/x86_64") }); +} + fn sdkPath(comptime suffix: []const u8) []const u8 { if (suffix[0] != '/') @compileError("suffix must be an absolute path"); return comptime blk: {