[babl/wip/msvc: 1/20] meson.build: Disable CPU intrinisics for MSVC for now



commit 6539e43ad5d270c6d4f259ddd98dfadbb838d65c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jan 17 15:29:42 2020 +0800

    meson.build: Disable CPU intrinisics for MSVC for now
    
    The tests for the CPU intrinsics don't work for MSVC, and we need to remove the
    GCC-specific syntax before they are buildeable on MSVC, so disable them for now

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 9a9f72006..626324717 100644
--- a/meson.build
+++ b/meson.build
@@ -184,7 +184,7 @@ sse4_1_cflags = []
 avx2_cflags   = []
 
 # mmx assembly
-if cc.has_argument('-mmmx') and get_option('enable-mmx')
+if cc.get_id() != 'msvc' and cc.has_argument('-mmmx') and get_option('enable-mmx')
   if cc.compiles('asm ("movq 0, %mm0");')
     message('mmx assembly available')
     add_project_arguments('-mmmx', language: 'c')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]