Revert "meson: fix build for arch:i686 , cc:gcc-7"
authorJan Vesely <jano.vesely@gmail.com>
Sun, 26 May 2019 16:26:44 +0000 (12:26 -0400)
committerØyvind Kolås <pippin@gimp.org>
Mon, 27 May 2019 10:10:14 +0000 (12:10 +0200)
This reverts commit 80347ef5b8706ddc0a2854dd5ff545b2d66ede4a.
Adding -march=native is a bad idea as it breaks invalidates individual
extension switches (sse, ...)
Issue #29 was fixed in e75a27b5346f4c8480180479b7524b1b20ed8321.

meson.build

index 38fb16592d1f0b10571904531ed3cc4608467e15..0561f152c6c41b24ab0caedf7449eaa9517bcb7f 100644 (file)
@@ -207,7 +207,6 @@ 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')