meson: disable sse4.1 optimizations with msvc
authorDylan Baker <dylan@pnwbakers.com>
Thu, 17 May 2018 21:45:10 +0000 (14:45 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 10 Oct 2019 23:33:04 +0000 (16:33 -0700)
There isn't an obvious command line switch here, /arch:AVX *might* be
the right thing, but meson doesn't know what to do here either and
leaves the -msse4.1 and -mstackrealign.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
meson.build

index b823dd8ecec6139c0e19baf2adf5ad6692b811bc..cfa77db1a1a79adc81081b27fe747a6e758d2eb7 100644 (file)
@@ -1027,7 +1027,7 @@ if host_machine.system() == 'windows'
   endif
 endif
 
-if host_machine.cpu_family().startswith('x86')
+if host_machine.cpu_family().startswith('x86') and cc.get_id() != 'msvc'
   pre_args += '-DUSE_SSE41'
   with_sse41 = true
   sse41_args = ['-msse4.1']