[babl/wip/msvc: 2/4] meson.build: Avoid GCC-esque CFLags for CPU intrinisics
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl/wip/msvc: 2/4] meson.build: Avoid GCC-esque CFLags for CPU intrinisics
- Date: Fri, 17 Jan 2020 07:49:30 +0000 (UTC)
commit 708def32fe63503325e14c9671d70112b0d82f9e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Jan 17 15:29:42 2020 +0800
meson.build: Avoid GCC-esque CFLags for CPU intrinisics
They don't work and are not needed for MSVC builds
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]