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

Dylan Baker dylan at pnwbakers.com
Mon Jun 11 22:55:58 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 abe45e933ba..bbcfb8ed8cb 100644
--- a/meson.build
+++ b/meson.build
@@ -844,7 +844,7 @@ else
   endforeach
 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.17.1



More information about the mesa-dev mailing list