Skip to content

Commit b2fa89a

Browse files
committed
canonicalize
1 parent 3f2fd01 commit b2fa89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/ports/rs_port/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn platform_install_paths() -> Result<InstallPath, Box<dyn std::error::Error>> {
6262
println!("windows");
6363
Ok(InstallPath {
6464
paths: vec![PathBuf::from(local_app_data)
65-
.join("Metacall")
65+
.join("MetaCall")
6666
.join("metacall")],
6767
name: "metacall.dll".to_string(),
6868
})
@@ -116,7 +116,7 @@ fn find_metacall_library() -> Result<PathBuf, Box<dyn std::error::Error>> {
116116
// Only search at depth 0 (current directory)
117117
match find_files_recursively(search_path, &search_config.name, Some(0)) {
118118
Ok(files) if !files.is_empty() => {
119-
let found_lib = &files[0];
119+
let found_lib = fs::canonicalize(&files[0])?;
120120
println!(
121121
"cargo:warning=Found MetaCall library: {}",
122122
found_lib.display()

0 commit comments

Comments
 (0)