From 73bef9a8c4a553ec70fc4b688824cca4a214ad1c Mon Sep 17 00:00:00 2001 From: Diego Arias Date: Wed, 14 Sep 2022 17:01:43 -0300 Subject: [PATCH] glfw: fix implicit function declaration error on clang15 --- libs/glfw/build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/glfw/build.zig b/libs/glfw/build.zig index 574018ac..45662c4b 100644 --- a/libs/glfw/build.zig +++ b/libs/glfw/build.zig @@ -155,6 +155,8 @@ fn addGLFWSources(b: *Builder, lib: *std.build.LibExeObjStep, options: Options) flags.append("-D_GLFW_WAYLAND") catch unreachable; } flags.append("-I" ++ thisDir() ++ "/upstream/glfw/src") catch unreachable; + // TODO(upstream): glfw can't compile on clang15 without this flag + flags.append("-Wno-implicit-function-declaration") catch unreachable; lib.addCSourceFiles(sources.items, flags.items); },