From bdc5c8793a13abb8846d115b7923df87605d05bd Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 1 Jun 2023 10:12:50 -0300 Subject: meson: allow disabling tests The new meson build system support diverges from former build system where the tests were not built until required. This has caused an issue in NixOS[1] due to broken build of tests in Darwin platform, so this patch allows the control if tests should be build or not. 1. https://github.com/NixOS/nixpkgs/pull/235210 Signed-off-by: Otavio Salvador Signed-off-by: David Gibson --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4654803..bf70f29 100644 --- a/meson.build +++ b/meson.build @@ -134,8 +134,8 @@ if not meson.is_cross_build() if py.found() and swig.found() subdir('pylibfdt') endif +endif - if get_option('tools') - subdir('tests') - endif +if get_option('tests') + subdir('tests') endif -- cgit v1.1