glfw: fix implicit function declaration error on clang15

This commit is contained in:
Diego Arias 2022-09-14 17:01:43 -03:00 committed by Stephen Gutekanst
parent e338416475
commit 797328abe8

View file

@ -155,6 +155,8 @@ fn addGLFWSources(b: *Builder, lib: *std.build.LibExeObjStep, options: Options)
flags.append("-D_GLFW_WAYLAND") catch unreachable; flags.append("-D_GLFW_WAYLAND") catch unreachable;
} }
flags.append("-I" ++ thisDir() ++ "/upstream/glfw/src") 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); lib.addCSourceFiles(sources.items, flags.items);
}, },