From 8f88c61bdfe1e6e009dd6f182bc7a2f5c8b38f15 Mon Sep 17 00:00:00 2001 From: Michael Scherbakow Date: Tue, 27 Sep 2022 01:27:22 +0200 Subject: [PATCH] update build.zig (#2720) zig `master` now enforces to use addIncludePath instead of addIncludeDir --- src/build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build.zig b/src/build.zig index 7834ab24..44a3c171 100644 --- a/src/build.zig +++ b/src/build.zig @@ -17,7 +17,7 @@ pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget) *std.build. raylib.setBuildMode(mode); raylib.linkLibC(); - raylib.addIncludeDir(srcdir ++ "/external/glfw/include"); + raylib.addIncludePath(srcdir ++ "/external/glfw/include"); raylib.addCSourceFiles(&.{ srcdir ++ "/raudio.c", @@ -35,7 +35,7 @@ pub fn addRaylib(b: *std.build.Builder, target: std.zig.CrossTarget) *std.build. raylib.linkSystemLibrary("winmm"); raylib.linkSystemLibrary("gdi32"); raylib.linkSystemLibrary("opengl32"); - raylib.addIncludeDir("external/glfw/deps/mingw"); + raylib.addIncludePath("external/glfw/deps/mingw"); }, .linux => { raylib.addCSourceFiles(&.{srcdir ++ "/rglfw.c"}, raylib_flags);