From 7e2f41bd8f55359e2831f30e7893bae67f05607e Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 12 May 2026 14:42:02 -0400 Subject: [PATCH] nouveau: Don't build NAK tests on Android Part-of: --- src/nouveau/compiler/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nouveau/compiler/meson.build b/src/nouveau/compiler/meson.build index 317ad79fee1..5b15570ec33 100644 --- a/src/nouveau/compiler/meson.build +++ b/src/nouveau/compiler/meson.build @@ -126,7 +126,10 @@ _libnak_rs = static_library( # TODO: Linking Rust executables (such as unit tests) doesn't play nicely # with the sanitizers because meson doesn't know to pass -fsanitize to the # Rust linker. See also https://github.com/mesonbuild/meson/issues/11741 -if with_tests and get_option('b_sanitize') == 'none' +# +# Also, don't build on Android because we do cross-builds and, unlike most +# tests, these depend on libdrm and that confuses the build system. +if with_tests and get_option('b_sanitize') == 'none' and not with_platform_android rust.test( 'nak', _libnak_rs,