Skip to content

Commit

Permalink
Incorporate review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Jan 9, 2025
1 parent 9cf2de8 commit 5a92c3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/build_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,20 @@ impl FileNames {

if target.env == "msvc" {
let static_lib = targetdir.join(format!("{lib_name}.lib"));
let impl_lib = match use_meson_naming_convention {
false => targetdir.join(format!("{lib_name}.dll.lib")),
true => targetdir.join(format!("{lib_name}.lib")),
let impl_lib = if use_meson_naming_convention {
targetdir.join(format!("{lib_name}.lib"))
} else {
targetdir.join(format!("{lib_name}.dll.lib"))
};
let pdb = Some(targetdir.join(format!("{lib_name}.pdb")));

(shared_lib, static_lib, Some(impl_lib), pdb, Some(def))
} else {
let static_lib = targetdir.join(format!("lib{lib_name}.a"));
let impl_lib = match use_meson_naming_convention {
false => targetdir.join(format!("{lib_name}.dll.a")),
true => targetdir.join(format!("lib{lib_name}.dll.a")),
let impl_lib = if use_meson_naming_convention {
targetdir.join(format!("lib{lib_name}.dll.a"))
} else {
targetdir.join(format!("{lib_name}.dll.a"))
};
let pdb = None;

Expand Down

0 comments on commit 5a92c3f

Please sign in to comment.