glfw: fix implicit function declaration error on clang15
This commit is contained in:
parent
e338416475
commit
797328abe8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue