Skip to content

Commit

Permalink
Tweak build.zig to work with cross-compiling (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiri8 authored Aug 6, 2023
1 parent dc621ca commit b82217e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub fn addRaylib(b: *std.Build, target: std.zig.CrossTarget, optimize: std.built
raylib.linkSystemLibrary("dl");
raylib.linkSystemLibrary("m");
raylib.linkSystemLibrary("X11");
raylib.addLibraryPath(.{ .path = "/usr/lib" });
raylib.addIncludePath(.{ .path = "/usr/include" });

raylib.defineCMacro("PLATFORM_DESKTOP", null);
Expand Down

0 comments on commit b82217e

Please sign in to comment.