Skip to content

Commit

Permalink
prefer qmake6 when available (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 authored Oct 22, 2024
1 parent b08463a commit d97f8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qttypes/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d97f8ab

Please sign in to comment.