diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2025-03-02 17:28:26 -0500 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2025-03-03 12:46:55 +1100 |
commit | 1ccd232709d409798aac93f45b2a2e1c43e98ec4 (patch) | |
tree | 2487c6f020080062aecbabf435e7c99d3a1ff789 /tests | |
parent | ce1d8588880aecd7af264e422a16a8b33617cef7 (diff) | |
download | dtc-1ccd232709d409798aac93f45b2a2e1c43e98ec4.zip dtc-1ccd232709d409798aac93f45b2a2e1c43e98ec4.tar.gz dtc-1ccd232709d409798aac93f45b2a2e1c43e98ec4.tar.bz2 |
meson: don't build test programs by default
They are only used when running tests, and are included as depedencies
of the test cases themselves already. Marking them to not build by
default, means that 291 compile edges can be skipped when only running
```
meson setup builddir/
ninja -C builddir/
meson install -C builddir/
```
resulting in an overall much faster build. Instead they will be compiled
on-demand by `meson test`, only for users that actually run the tests.
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Message-ID: <20250302222839.2256985-1-eschwartz@gentoo.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 9cf6e3d..f1044b9 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,7 +1,9 @@ trees = static_library('trees', files('trees.S'), c_args: '-D__ASSEMBLY__', + build_by_default: false, include_directories: libfdt_inc) dumptrees = executable('dumptrees', files('dumptrees.c'), + build_by_default: false, link_with: trees, dependencies: libfdt_dep) dumptrees_dtb = custom_target( @@ -111,7 +113,7 @@ endif tests_exe = [] foreach t: tests - tests_exe += executable(t, files(t + '.c'), dependencies: test_deps, link_args: extra_link_args) + tests_exe += executable(t, files(t + '.c'), dependencies: test_deps, link_args: extra_link_args, build_by_default: false) endforeach run_tests = find_program('run_tests.sh') |