diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2014-12-30 23:58:04 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2014-12-31 00:55:43 +0300 |
commit | c9f476c57ce97c6d44514fb835a282936bd7bb3f (patch) | |
tree | b8321b17af8cdb4ea66da17c6f87d61c5c4b1a6b /compiler.pri | |
parent | 4d55c33e4747fb373e74ba50d70daaa9404e4d1c (diff) |
compiler.pri: only set explicit -ARCH:SSE for Windows x86.
Diffstat (limited to 'compiler.pri')
-rw-r--r-- | compiler.pri | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler.pri b/compiler.pri index c5dcec643..38d02e57c 100644 --- a/compiler.pri +++ b/compiler.pri @@ -90,9 +90,13 @@ win32 { # MSVS 2012 and 2013's cl.exe will generate SSE2 code by default, # unless an explict arch is set. + # For our non-64 x86 builds, our binaries should not contain any + # SSE2 code, so override the default by using -arch:SSE. win32-msvc2012|win32-msvc2013 { - QMAKE_CFLAGS_RELEASE *= -arch:SSE - QMAKE_CXXFLAGS_RELEASE *= -arch:SSE + equals(QMAKE_TARGET.arch, x86) { + QMAKE_CFLAGS_RELEASE *= -arch:SSE + QMAKE_CXXFLAGS_RELEASE *= -arch:SSE + } } # Qt 5.4 uses -Zc:strictStrings by default on MSVS 2013. |