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

Dylan Baker dylan at pnwbakers.com
Tue Aug 7 00:51:10 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 73a69dc3fc1..aaa7d9990ab 100644
--- a/meson.build
+++ b/meson.build
@@ -876,7 +876,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.18.0



More information about the mesa-dev mailing list