diff --git a/qttypes/build.rs b/qttypes/build.rs index a14aacf..d20d9d3 100644 --- a/qttypes/build.rs +++ b/qttypes/build.rs @@ -43,8 +43,8 @@ fn qmake_query(var: &str) -> String { Err(_env_var_err) => { (|| { // Some Linux distributions (Fedora, Arch) rename qmake to qmake-qt5. - // qmake6 is somehow an official alias - for qmake in &["qmake", "qmake6", "qmake-qt5"] { + // qmake6 is an official alias that generally always points to the Qt6 version. + for qmake in &["qmake6", "qmake", "qmake-qt5"] { match Command::new(qmake).args(&["-query", var]).output() { Err(err) if err.kind() == std::io::ErrorKind::NotFound => continue, x => return x,