Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion asio-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,13 @@ fn get_asio_dir() -> PathBuf {
// Move the contents of the inner directory to asio_dir
for entry in walkdir::WalkDir::new(&temp_dir).min_depth(1).max_depth(1) {
let entry = entry.unwrap();
if entry.file_type().is_dir() && entry.file_name().to_string_lossy().starts_with("asio") {
if entry.file_type().is_dir()
&& entry
.file_name()
.to_string_lossy()
.to_lowercase()
.starts_with("asio")
{
std::fs::rename(entry.path(), &asio_dir).expect("Failed to rename directory");
break;
}
Expand Down