Skip to content

Commit

Permalink
Merge pull request #2034 from vhdirk/library-stem-name
Browse files Browse the repository at this point in the history
Fix dashed library names
  • Loading branch information
fzyzcjy authored Jun 7, 2024
2 parents f87f6ab + 6ce69d0 commit 435d0d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn compute_default_external_library_stem(rust_crate_dir: &Path) -> anyhow::Resul
let target = (package.targets.iter())
.find(|target| target.kind.iter().any(|kind| kind.contains("lib")))
.context("cannot find target")?;
Ok(target.name.clone())
Ok(target.name.replace('-', "_"))
}

fn compute_default_external_library_relative_directory(
Expand Down

0 comments on commit 435d0d1

Please sign in to comment.