Merge pull request #484 from marler8997/fixWindowsFontconfigCrash

windows: fix fontconfig into libxml runtime crash from implicit func decl
This commit is contained in:
Mitchell Hashimoto
2023-09-18 08:26:17 -07:00
committed by GitHub

View File

@ -160,7 +160,15 @@ pub fn buildFontconfig(
if (opt.libxml2) {
try flags.appendSlice(&.{
"-DENABLE_LIBXML2",
"-DLIBXML_STATIC",
"-DLIBXML_PUSH_ENABLED",
});
if (target.isWindows()) {
// NOTE: this should be defined on all targets
try flags.appendSlice(&.{
"-Werror=implicit-function-declaration",
});
}
}
if (target.isWindows()) {