From: Øyvind Kolås Date: Fri, 2 Aug 2019 11:53:44 +0000 (+0200) Subject: build: issue #41 builds without mmx/sse etc extensions do not work X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~37 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=030303d8c1528232efba1f6ac9425352903764df;p=babl.git build: issue #41 builds without mmx/sse etc extensions do not work The warnings about the SIMD flags specific variables not being set goes away with this commit. Setting empty strings do not work since then gcc ends up looking for input files that are the empty string, thus this patch re-adds -Wall instead of setting an empty string. --- diff --git a/meson.build b/meson.build index 66aa981..85a8554 100644 --- a/meson.build +++ b/meson.build @@ -215,6 +215,8 @@ if cc.has_argument('-mmmx') and get_option('enable-mmx') sse4_1_cflags = '-msse4.1' conf.set('USE_SSE4_1', 1, description: 'Define to 1 if sse4.1 assembly is available.') + else + sse4_1_cflags = '-Wall' endif # avx2 assembly @@ -224,11 +226,21 @@ if cc.has_argument('-mmmx') and get_option('enable-mmx') avx2_cflags = '-mavx2' conf.set('USE_AVX2', 1, description: 'Define to 1 if avx2 assembly is available.') + else + avx2_cflags = '-Wall' endif + else + avx2_cflags = '-Wall' endif endif + else + sse2_cflags = '-Wall' endif + else + sse2_args = ['-Wall'] endif + else + sse_args = ['-Wall'] endif if cc.has_argument('-mf16c') and get_option('enable-f16c') if cc.compiles( @@ -242,8 +254,14 @@ if cc.has_argument('-mmmx') and get_option('enable-mmx') 'Define to 1 if f16c intrinsics are available.') endif endif + else + sse_args = '-Wall' endif + else + mmx_args = '-Wall' endif +else + mmx_args = '-Wall' endif ################################################################################