@@ -71,12 +71,13 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics)
with_intel = false
_intel = get_option('intel')
-if _intel != 'false'
- if _intel == 'true' and not with_atomics
- error('libdrm_intel requires atomics.')
- else
- with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86')
- endif
+if _intel == 'auto'
+ with_intel = with_atomics and host_machine.cpu_family().startswith('x86')
+else
+ with_intel = _intel == 'true'
+endif
+if with_intel and not with_atomics
+ error('libdrm_intel requires atomics.')
endif
with_radeon = false
In the 'auto' case, the `with_atomic` check was bypassed. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> --- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)