From d94b6a757a808ea6d7361d3b97634b66c43c9aa1 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::>() }