From 341ce9de0d3e110a66186704f0da4a797f8cff22 Mon Sep 17 00:00:00 2001 From: Andrew Liu <24590316+aliu@users.noreply.github.com> Date: Sat, 25 May 2024 21:33:56 -0700 Subject: [PATCH] Return unescaped paths when searching for library files --- build/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common.rs b/build/common.rs index 6a1f7b758..a32e8b686 100644 --- a/build/common.rs +++ b/build/common.rs @@ -237,7 +237,7 @@ fn search_directory(directory: &Path, filenames: &[String]) -> Vec<(PathBuf, Str return None; } - Some((directory.to_owned(), filename.into())) + Some((path.parent().unwrap().to_owned(), filename.into())) }) .collect::>() }