From 4c86230bfe563ef1e3ef493b870203761bc9f32d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 26 Nov 2013 10:17:44 +0100 Subject: Do not force SSE2 instructions on i386 builds To have consistent rendering between x86 and x64 builds QtWebKit enables SSE2 math on x86. This however raises the minimum requirements of the x86 binaries and should be disabled in Qt builds. Change-Id: If57ff0a3c9cd0a91a508ba02fda8b596381262a8 Reviewed-by: Simon Hausmann --- Tools/qmake/mkspecs/features/unix/default_post.prf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/qmake/mkspecs/features/unix/default_post.prf b/Tools/qmake/mkspecs/features/unix/default_post.prf index a29534d3a..2df72d909 100644 --- a/Tools/qmake/mkspecs/features/unix/default_post.prf +++ b/Tools/qmake/mkspecs/features/unix/default_post.prf @@ -8,8 +8,10 @@ # 387 to make layout test results same on 32 and on 64 bit builds. # See https://bugs.webkit.org/show_bug.cgi?id=52810#c39 for details. linux-g++*:isEqual(QT_ARCH,i386) { - QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse - QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse + !production_build { + QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse + QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse + } # Use the stabs format for 32 bit debug builds to make the object files a bit smaller. QMAKE_CXXFLAGS_DEBUG -= -g -- cgit v1.2.1