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(-)
diff --git a/meson.build b/meson.build index edcc7e8ddc39b1760868..55ad207b6de349863be3 100644 --- a/meson.build +++ b/meson.build @@ -130,12 +130,13 @@ endif
with_freedreno = false _freedreno = get_option('freedreno') -if _freedreno != 'false' - if _freedreno == 'true' and not with_atomics - error('libdrm_freedreno requires atomics.') - else - with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) - endif +if _freedreno == 'auto' + with_freedreno = with_atomics and ['arm', 'aarch64'].contains(host_machine.cpu_family()) +else + with_freedreno = _freedreno == 'true' +endif +if with_freedreno and not with_atomics + error('libdrm_freedreno requires atomics.') endif
with_tegra = false