meson.build: use valgrind only if available
@@ -329,7 +329,8 @@ if enable_tests
test('test-util', test_util)
test('test-iconv-helper', test_iconv_helper)
- valgrind = find_program('valgrind')
+ valgrind = find_program('valgrind', required : false)
+ if valgrind.found()
valgrind_suppressions_file = join_paths(meson.source_root(), 'test', 'valgrind.suppressions')
add_test_setup('valgrind',
exe_wrapper : [
@@ -340,6 +341,7 @@ if enable_tests
'--suppressions=' + valgrind_suppressions_file ],
timeout_multiplier: 5)
endif
+endif
#### ratbagd ####
#
