From 585cd0e6eec9e9d048312da365bd3a65bd8919b4 Mon Sep 17 00:00:00 2001 From: jgcodes2020 Date: Fri, 18 Oct 2024 12:50:23 -0400 Subject: [PATCH] prefer qmake6 when available --- qttypes/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,