From 1cb81e3f4c30479d2d5e2194e7bf332ded750554 Mon Sep 17 00:00:00 2001 From: Roman Akberov Date: Wed, 2 Nov 2022 18:41:21 +0100 Subject: [PATCH] Fix examples/build.zig for the latest Zig version (#2786) --- examples/build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/build.zig b/examples/build.zig index 3e6d68ad..cb211aef 100644 --- a/examples/build.zig +++ b/examples/build.zig @@ -35,16 +35,16 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi else => @panic("Unsupported OS"), }); - exe.addIncludeDir("../src"); - exe.addIncludeDir("../src/external"); - exe.addIncludeDir("../src/external/glfw/include"); + exe.addIncludePath("../src"); + exe.addIncludePath("../src/external"); + exe.addIncludePath("../src/external/glfw/include"); switch (exe.target.toTarget().os.tag) { .windows => { exe.linkSystemLibrary("winmm"); exe.linkSystemLibrary("gdi32"); exe.linkSystemLibrary("opengl32"); - exe.addIncludeDir("external/glfw/deps/mingw"); + exe.addIncludePath("external/glfw/deps/mingw"); }, .linux => { exe.linkSystemLibrary("GL");