diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-08-31 11:18:39 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-08-31 13:45:34 (GMT) |
commit | c9459fed5a3c57fea8705979064b9c028bfdaa72 (patch) | |
tree | 1733b0610f14afb16d03605c02779b255ea32934 /src/corelib | |
parent | 69d43435f241f0d654b1a3eecdfdfc5140f6beac (diff) | |
download | Qt-c9459fed5a3c57fea8705979064b9c028bfdaa72.zip Qt-c9459fed5a3c57fea8705979064b9c028bfdaa72.tar.gz Qt-c9459fed5a3c57fea8705979064b9c028bfdaa72.tar.bz2 |
Undefined SSE symbols when crosscompiling Qt on PPC.
Qt does not build on PowerPC when compiling for both x86 and PPC on Mac.
The compiler is invoked only once for both architecture so the defines
are there in order to get the optimized path for x86. Those defines
needs to be removed from the compilation environment when the target
is set to PPC by GCC.
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qsimd_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index 2626657..664543b 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -51,8 +51,13 @@ QT_BEGIN_HEADER #if defined(QT_NO_MAC_XARCH) || (defined(Q_OS_DARWIN) && (defined(__ppc__) || defined(__ppc64__))) // Disable MMX and SSE on Mac/PPC builds, or if the compiler // does not support -Xarch argument passing -#undef QT_HAVE_SSE2 #undef QT_HAVE_SSE +#undef QT_HAVE_SSE2 +#undef QT_HAVE_SSE3 +#undef QT_HAVE_SSSE3 +#undef QT_HAVE_SSE4_1 +#undef QT_HAVE_SSE4_2 +#undef QT_HAVE_AVX #undef QT_HAVE_3DNOW #undef QT_HAVE_MMX #endif |