mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
meson: remove dependency antipattern
`dep_valgrind != []` now (0.45) produces a warning that is quite explicit: WARNING: Trying to compare values of different types (DependencyHolder, list) using !=. The result of this is undefined and will become a hard error in a future Meson release. `dep_valgrind = []` used to be the recommended way to deal with non-existant dependency, but these don't work with `.found()`, so now the recommended way is to declare a impossible dependency, which null_dep does for us in Mesa. In short, we don't need and shouldn't check for `!= []` anywhere anymore. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
ece398277c
commit
f0cdc39b13
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ glcpp = executable(
|
|||
|
||||
if with_tests
|
||||
modes = ['unix', 'windows', 'oldmac', 'bizarro']
|
||||
if dep_valgrind != [] and dep_valgrind.found()
|
||||
if dep_valgrind.found()
|
||||
modes += ['valgrind']
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue