From e2bea7436061ca2e7e14bfcfdc5870f2555c3965 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Mon, 15 Apr 2019 14:36:48 +0200 Subject: New upstream version 18.11.1 Change-Id: Ic52e74a9ed6f3ae06acea4a27357bd7153efc2a3 Signed-off-by: Christian Ehrhardt --- config/x86/meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config/x86/meson.build') diff --git a/config/x86/meson.build b/config/x86/meson.build index 33efb5e5..9e5952aa 100644 --- a/config/x86/meson.build +++ b/config/x86/meson.build @@ -2,7 +2,16 @@ # Copyright(c) 2017 Intel Corporation # for checking defines we need to use the correct compiler flags -march_opt = '-march=@0@'.format(machine) +march_opt = ['-march=@0@'.format(machine)] + +# get binutils version for the workaround of Bug 97 +ldver = run_command('ld', '-v').stdout().strip() +if ldver.contains('2.30') + if cc.has_argument('-mno-avx512f') + march_opt += '-mno-avx512f' + message('Binutils 2.30 detected, disabling AVX512 support as workaround for bug #97') + endif +endif # we require SSE4.2 for DPDK sse_errormsg = '''SSE4.2 instruction set is required for DPDK. -- cgit 1.2.3-korg