Skip to content

Commit d97f8ab

Browse files
authored
prefer qmake6 when available (#315)
1 parent b08463a commit d97f8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qttypes/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ fn qmake_query(var: &str) -> String {
4343
Err(_env_var_err) => {
4444
(|| {
4545
// Some Linux distributions (Fedora, Arch) rename qmake to qmake-qt5.
46-
// qmake6 is somehow an official alias
47-
for qmake in &["qmake", "qmake6", "qmake-qt5"] {
46+
// qmake6 is an official alias that generally always points to the Qt6 version.
47+
for qmake in &["qmake6", "qmake", "qmake-qt5"] {
4848
match Command::new(qmake).args(&["-query", var]).output() {
4949
Err(err) if err.kind() == std::io::ErrorKind::NotFound => continue,
5050
x => return x,

0 commit comments

Comments
 (0)