diff mbox

[libdrm,v2,06/23] meson: split vc4=auto logic to make it easier to read

Message ID 20180404153818.26179-6-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom April 4, 2018, 3:38 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index 55ad207b6de349863be3..ba8072a19515f8d7aaa4 100644
--- a/meson.build
+++ b/meson.build
@@ -161,8 +161,10 @@  with_exynos = get_option('exynos') == 'true'
 
 with_vc4 = false
 _vc4 = get_option('vc4')
-if _vc4 != 'false'
-  with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
+if _vc4 == 'auto'
+  with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family())
+else
+  with_vc4 = _vc4 == 'true'
 endif
 
 # XXX: Aparently only freebsd and dragonfly bsd actually need this (and