Browse Source

Tweak build.zig to work with cross-compiling (#3225)

pull/3229/head
yujiri8 1 year ago
committed by GitHub
parent
commit
b82217eaaa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/build.zig

+ 1
- 0
src/build.zig View File

@ -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);

Loading…
Cancel
Save