[PATCH libdrm 08/23] meson: fix tegra=auto detection (was always false)
Eric Engestrom
eric.engestrom at imgtec.com
Tue Mar 20 17:46:44 UTC 2018
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
meson.build | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/meson.build b/meson.build
index 76eefaeca20ad80ba1ef..a5b71c5e8fb55600458e 100644
--- a/meson.build
+++ b/meson.build
@@ -151,11 +151,13 @@ endif
with_tegra = false
_tegra = get_option('tegra')
-if _tegra == 'true'
- if not with_atomics
- error('libdrm_tegra requires atomics.')
- endif
- with_tegra = true
+if _tegra == 'auto'
+ with_tegra = with_atomics
+else
+ with_tegra = _tegra == 'true'
+endif
+if with_tegra and not with_atomics
+ error('libdrm_tegra requires atomics.')
endif
with_etnaviv = false
--
Cheers,
Eric
More information about the dri-devel
mailing list