mcompile: Fix target name suggestions

pull/11774/head
Xavier Claessens 2 years ago committed by Xavier Claessens
parent 0bea4b632e
commit 1958ded04f
  1. 2
      mesonbuild/mcompile.py

@ -119,7 +119,7 @@ def get_target_from_intro_data(target: ParsedTargetName, builddir: Path, introsp
elif len(found_targets) > 1:
suggestions: T.List[str] = []
for i in found_targets:
p = Path(i['filename'][0]).relative_to(resolved_bdir)
p = Path(i['filename'][0]).relative_to(resolved_bdir).parent / i['name']
t = i['type'].replace(' ', '_')
suggestions.append(f'- ./{p}:{t}')
suggestions_str = '\n'.join(suggestions)

Loading…
Cancel
Save