Skip to content

Commit

Permalink
cxx-qt-build: use full directory path when comparing qml roots
Browse files Browse the repository at this point in the history
  • Loading branch information
ahayzen-kdab committed Sep 6, 2024
1 parent d06390e commit 62757b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/cxx-qt-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,12 @@ impl CxxQtBuilder {
.rust_files
.iter()
.map(|file| {
file.parent()
.unwrap()
.file_name()
.unwrap()
.to_string_lossy()
.to_string()
if let Some(parent) = file.parent() {
parent.to_string_lossy().to_string()
} else {
// Fallback to an empty string if there is no parent path
String::new()
}
})
.collect::<HashSet<String>>();
if dirs.len() > 1 {
Expand Down

0 comments on commit 62757b5

Please # to comment.