Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions mesonbuild/modules/_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,13 @@ def compilers_detect(self, state: ModuleState, qt_dep: QtDependencyType) -> None

def gen_bins() -> T.Generator[T.Tuple[str, str], None, None]:
for b in self.tools:
if qt_dep.bindir:
yield os.path.join(qt_dep.bindir, b), b
if qt_dep.libexecdir:
yield os.path.join(qt_dep.libexecdir, b), b
if self.qt_version >= 6 and b != 'lrelease':
dirs = [qt_dep.libexecdir, qt_dep.bindir]
else:
dirs = [qt_dep.bindir, qt_dep.libexecdir]
for d in dirs:
if d:
yield os.path.join(d, b), b
# prefer the (official) <tool><version> or (unofficial) <tool>-qt<version>
# of the tool to the plain one, as we
# don't know what the unsuffixed one points to without calling it.
Expand Down
Loading