From: Dylan Baker Date: Wed, 18 Apr 2018 17:53:27 +0000 (-0700) Subject: meson: don't build classic mesa tests without dri_drivers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaab6242456a4a5e737da0add179704b0b6f3676;p=mesa.git meson: don't build classic mesa tests without dri_drivers Since mesa_classic is build-on-demand the tests will create a demand and add a bunch of extra compilation. Fixes: 43a6e84927e3b1290f6f211f5dfb184dfe5a719e ("meson: build mesa test.") Signed-off-by: Dylan Baker Reviewed-by: Eric Anholt --- diff --git a/src/mesa/meson.build b/src/mesa/meson.build index c1334c96374..72d87178aa1 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -732,6 +732,6 @@ endif if with_glx == 'xlib' subdir('drivers/x11') endif -if with_tests +if with_tests and dri_drivers != [] subdir('main/tests') endif