Bug 1390583 Patch to illustrate root of problem
MozReview-Commit-ID: BBwBY9UHVqc
old mode 100644
new mode 100755
--- a/layout/style/ServoBindings.toml
+++ b/layout/style/ServoBindings.toml
@@ -35,16 +35,33 @@ args = [
# Enable hidden attribute (which is not supported by MSVC and
# thus not enabled by default with a MSVC-compatibile build)
# to exclude hidden symbols from the generated file.
"-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1",
]
"arch=x86" = ["--target=i686-pc-win32"]
"arch=x86_64" = ["--target=x86_64-pc-win32"]
+# This catches the MinGW build
+[build."os=windows"]
+args = [
+ "-DOS_WIN=1", "-DWIN32=1",
+
+ # Include directories needed to find header files
+ "-I/usr/local/i686-w64-mingw32/include/c++/5.1.0/",
+ "-I/usr/local/lib/gcc/i686-w64-mingw32/5.1.0/include/",
+ "-I/usr/local/i686-w64-mingw32/include/c++/5.1.0/i686-w64-mingw32/",
+ "-I/usr/local/i686-w64-mingw32/include/",
+
+ # Fix error: unknown type name 'char16_t'
+ "-std=c++11", "-fno-ms-compatibility"
+]
+"arch=x86" = ["--target=i686-pc-win32"]
+"arch=x86_64" = ["--target=x86_64-pc-win32"]
+
[structs]
headers = [
"nsStyleStruct.h",
"mozilla/ServoPropPrefList.h",
"mozilla/StyleAnimationValue.h",
"gfxFontConstants.h",
"nsThemeConstants.h",
"mozilla/css/Loader.h",