Fix MinGW build without any optimizations

Building without any optimizations disabled implicit inlining of
MetaClass::getMemberList() and we ended up with many undefined symbols.
This commit is contained in:
Roland Winklmeier
2018-01-29 07:49:42 +00:00
committed by Klaus Basan
parent aa21d9ea92
commit 87bb9e28cd
2 changed files with 7 additions and 2 deletions

View File

@@ -28,7 +28,7 @@
// Work around MinGW problem with combination of constexpr and extern template
#if defined(Q_OS_WIN) && defined(Q_CC_GNU)
#define BLACK_NO_EXPORT_CONSTEXPR constexpr inline __attribute__((gnu_inline))
#define BLACK_NO_EXPORT_CONSTEXPR constexpr inline __attribute__((always_inline))
#else
#define BLACK_NO_EXPORT_CONSTEXPR constexpr
#endif