qtbase-moc-ignore-gcc-macro.patch raw

   1  The moc executable loops through headers on CPLUS_INCLUDE_PATH and stumbles
   2  on the GCC internal _GLIBCXX_VISIBILITY macro.  Tell it to ignore it as it is
   3  not supposed to be looking there to begin with.
   4  
   5  Upstream report: https://bugreports.qt.io/browse/QTBUG-83160
   6  
   7  diff --git a/qtbase/src/tools/moc/main.cpp b/qtbase/src/tools/moc/main.cpp
   8  --- a/qtbase/src/tools/moc/main.cpp
   9  +++ b/qtbase/src/tools/moc/main.cpp
  10  @@ -238,6 +238,7 @@ int runMoc(int argc, char **argv)
  11       dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER, "__VA_ARGS__");
  12       pp.macros["__attribute__"] = dummyVariadicFunctionMacro;
  13       pp.macros["__declspec"] = dummyVariadicFunctionMacro;
  14  +    pp.macros["_GLIBCXX_VISIBILITY"] = dummyVariadicFunctionMacro;
  15   
  16       QString filename;
  17       QString output;
  18