Skip to content

Commit

Permalink
Fix gnu static lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Jun 7, 2020
1 parent e22e54a commit 6028c8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ impl BuildTargets {
(shared_lib, static_lib, None, None)
}
("windows", ref env) => {
let static_lib = targetdir.join(&format!("{}.lib", name));
let static_lib = if *env == "msvc" {
targetdir.join(&format!("{}.lib", name))
} else {
targetdir.join(&format!("lib{}.a", name))
};
let shared_lib = targetdir.join(&format!("{}.dll", name));
let impl_lib = if *env == "msvc" {
targetdir.join(&format!("{}.dll.lib", name))
Expand Down

0 comments on commit 6028c8a

Please sign in to comment.