From 8f683eeb21021f5907e8a6587c59d2d486399027 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 20 Jan 2023 08:30:07 -0500 Subject: mcompile: Do not exclude targets from subprojects When giving full path to a target there is no reason to skip targets from subprojects, the path can start with `subprojects/`. --- mesonbuild/mcompile.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py index 2f5cee904..e14f9e98b 100644 --- a/mesonbuild/mcompile.py +++ b/mesonbuild/mcompile.py @@ -108,11 +108,9 @@ def get_target_from_intro_data(target: ParsedTargetName, builddir: Path, introsp found_targets = intro_targets else: for intro_target in intro_targets: - if (intro_target['subproject'] or - (target.type and target.type != intro_target['type'].replace(' ', '_')) or - (target.path - and intro_target['filename'] != 'no_name' - and Path(target.path) != Path(intro_target['filename'][0]).relative_to(resolved_bdir).parent)): + if ((target.type and target.type != intro_target['type'].replace(' ', '_')) or + (target.path and intro_target['filename'] != 'no_name' and + Path(target.path) != Path(intro_target['filename'][0]).relative_to(resolved_bdir).parent)): continue found_targets += [intro_target] -- cgit v1.2.3