summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2019-05-02 14:35:27 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-02 17:48:08 +0200
commit8441eb7274099da6ffd68741dcd7cd5c7fe93104 (patch)
treed61f71cad9cccf3040f171f8bbf03e8f13fb9315 /config
parente19c6de3f2f12d0f49bdf9e787b3f43612c1df3c (diff)
downloaddpdk-draft-windows-8441eb7274099da6ffd68741dcd7cd5c7fe93104.zip
dpdk-draft-windows-8441eb7274099da6ffd68741dcd7cd5c7fe93104.tar.gz
dpdk-draft-windows-8441eb7274099da6ffd68741dcd7cd5c7fe93104.tar.xz
build: reduce indentation in meson check
Just syntax change to reduce indentation, no functional change. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'config')
-rw-r--r--config/x86/meson.build8
1 files changed, 3 insertions, 5 deletions
diff --git a/config/x86/meson.build b/config/x86/meson.build
index 0a7bed7..bb23771 100644
--- a/config/x86/meson.build
+++ b/config/x86/meson.build
@@ -4,11 +4,9 @@
# get binutils version for the workaround of Bug 97
if not is_windows
ldver = run_command('ld', '-v').stdout().strip()
- if ldver.contains('2.30')
- if cc.has_argument('-mno-avx512f')
- machine_args += '-mno-avx512f'
- message('Binutils 2.30 detected, disabling AVX512 support as workaround for bug #97')
- endif
+ if ldver.contains('2.30') and cc.has_argument('-mno-avx512f')
+ machine_args += '-mno-avx512f'
+ message('Binutils 2.30 detected, disabling AVX512 support as workaround for bug #97')
endif
if ldver.contains('2.31') and cc.has_argument('-mno-avx512f')
machine_args += '-mno-avx512f'