Skip to content

Commit

Permalink
mach-glfw: update build.zig usage instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
Stephen Gutekanst committed Jan 28, 2024
1 parent 52590d5 commit c276363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/pkg/mach-glfw.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ Add the following to your `build.zig` below your `const exe = b.addExecutable(..
```zig
// Use mach-glfw
const glfw_dep = b.dependency("mach_glfw", .{
.target = exe.target,
.optimize = exe.optimize,
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("mach-glfw", glfw_dep.module("mach-glfw"));
@import("mach_glfw").addPaths(exe);
Expand Down

0 comments on commit c276363

Please sign in to comment.