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/`.
pull/11461/head
Xavier Claessens 2 years ago committed by Xavier Claessens
parent f9da31ce61
commit 8f683eeb21
  1. 8
      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]

Loading…
Cancel
Save