diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-01-30 23:29:20 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2020-01-30 23:29:20 +0100 |
commit | 8992d5b4fc37b3bd650e26d450f7fb6faefebaeb (patch) | |
tree | 76d0f13200f9b27136e5cd521d4dacd4011c51dd | |
parent | 364760cd3d9c62088cbe6a81d1f7704344203e40 (diff) | |
download | pixman-8992d5b4fc37b3bd650e26d450f7fb6faefebaeb.tar.gz |
meson: finish porting over mmx and ssse2 flags for sun and msvc
Those flags are set by the configure.ac script
-rw-r--r-- | meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 72d7e3d..45ef219 100644 --- a/meson.build +++ b/meson.build @@ -86,7 +86,12 @@ endif use_mmx = get_option('mmx') have_mmx = false mmx_flags = [] -if cc.get_id() != 'msvc' + +if cc.get_id() == 'msvc' + mmx_flags = ['/w14710', '/w14714', '/wd4244'] +elif cc.get_id() == 'sun' + mmx_flags = ['-xarch=sse'] +else mmx_flags = ['-mmmx', '-Winline'] endif if not use_mmx.disabled() @@ -143,7 +148,9 @@ endif use_sse2 = get_option('sse2') have_sse2 = false sse2_flags = [] -if cc.get_id() != 'msvc' +if cc.get_id() == 'sun' + sse2_flags = ['-xarch=sse2'] +elif cc.get_id() != 'msvc' sse2_flags = ['-msse2', '-Winline'] endif if not use_sse2.disabled() |