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