meson: fix build for arch:i686 , cc:gcc-7
authorØyvind Kolås <pippin@gimp.org>
Sat, 25 May 2019 16:35:57 +0000 (18:35 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sat, 25 May 2019 16:38:23 +0000 (18:38 +0200)
Fixing issue #29 and merge reuqest !6.

meson.build

index e5ea943a5b6e01df9bbe4977b554ba3f67708c68..9a827c0e1f1ef9930543b3052c40d05a4bdbb4c3 100644 (file)
@@ -207,6 +207,7 @@ if cc.has_argument('-mmmx') and get_option('enable-mmx')
             sse2_cflags = '-msse2'
             conf.set('USE_SSE2', 1, description:
               'Define to 1 if sse2 assembly is available.')
+            add_project_arguments('-march=native', language : 'c')
 
             # sse4.1 assembly
             if cc.has_argument('-msse4.1') and get_option('enable-sse4_1')