Skip to content

Commit

Permalink
add addLibraryPathToModule
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Jan 14, 2024
1 parent 115bf38 commit 74e2cda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 74e2cda

Please sign in to comment.