mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
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:
committed by
Klaus Basan
parent
aa21d9ea92
commit
87bb9e28cd
@@ -74,7 +74,12 @@ msvc:!llvm: QMAKE_CXXFLAGS *= /bigobj
|
|||||||
# No gigantic MinGW obj files
|
# No gigantic MinGW obj files
|
||||||
################################
|
################################
|
||||||
|
|
||||||
win32-g++: QMAKE_CXXFLAGS_DEBUG += -Og
|
# If you get variables, optimized out during debugging, try to comment the first and uncomment
|
||||||
|
# the second line. This disables all debug optimizations. But be warned, that the build
|
||||||
|
# will take hours.
|
||||||
|
|
||||||
|
win32-g++: CONFIG += optimize_debug
|
||||||
|
# win32-g++: QMAKE_CXXFLAGS *= -Wa,-mbig-obj
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# FSX or FS9 on 32bit Windows only
|
# FSX or FS9 on 32bit Windows only
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
// Work around MinGW problem with combination of constexpr and extern template
|
// Work around MinGW problem with combination of constexpr and extern template
|
||||||
#if defined(Q_OS_WIN) && defined(Q_CC_GNU)
|
#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
|
#else
|
||||||
#define BLACK_NO_EXPORT_CONSTEXPR constexpr
|
#define BLACK_NO_EXPORT_CONSTEXPR constexpr
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user