summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-10-31 15:49:49 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-11-03 08:47:12 -0800
commit0514719b3cfadf0c80d10dc6652154c7c2a86bce (patch)
tree80694e7b71d62590b53c71260132d22b4eb60a9a /mesonbuild/backend/ninjabackend.py
parentd00f840c573103c2d51aed2b169386f7acfe7026 (diff)
downloadmeson-0514719b3cfadf0c80d10dc6652154c7c2a86bce.tar.gz
backends: add CustomTargetIndexes to meson-{test,benchmark}-prereq
If a CustomTargetIndex is passed as an argument to a test, running meson test (with no test glob) does not automatically build the custom_target before running the test, because CustomTargetIndex outputs are not added as prerequisites to the meson-test-prereq and meson-benchmark-prereq targets. Fixes: #14743 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index ba3f1d36e..3510d19b4 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -3961,11 +3961,11 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
def generate_ending(self) -> None:
for targ, deps in [
- ('all', self.get_build_by_default_targets()),
+ ('all', self.get_build_by_default_targets().values()),
('meson-test-prereq', self.get_testlike_targets()),
('meson-benchmark-prereq', self.get_testlike_targets(True))]:
targetlist = []
- for t in deps.values():
+ for t in deps:
# Add the first output of each target to the 'all' target so that
# they are all built
#Add archive file if shared library in AIX for build all.