diff mbox series

[v3,3/3] build: reduce indentation in meson check

Message ID 20190502133527.87937-3-ferruh.yigit@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers show
Series [v3,1/3] build: fix meson binutils workaround | expand

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply issues

Commit Message

Ferruh Yigit May 2, 2019, 1:35 p.m. UTC
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>
---
 config/x86/meson.build | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/config/x86/meson.build b/config/x86/meson.build
index 0a7bed75e..bb23771b4 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'