[Mesa-dev] [PATCH v4 31/49] meson: disable sse4.1 optimizations with msvc

Dylan Baker dylan at pnwbakers.com
Wed Aug 22 17:04:54 UTC 2018


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.
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 05a03f687cd..9c445c58e52 100644
--- a/meson.build
+++ b/meson.build
@@ -910,7 +910,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']
-- 
2.18.0



More information about the mesa-dev mailing list