Minor build cleanup

pull/26/head
Bradlee Speice 2020-03-07 19:38:28 -05:00
parent c0de7f580e
commit 3d2ba4a161
1 changed files with 7 additions and 10 deletions

View File

@ -47,17 +47,14 @@ pub fn main() {
link_type.target_name()
);
match link_type {
LinkType::Static => {
// On Windows, there are some extra libraries needed for static link
// that aren't included by Aeron.
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=iphlpapi");
}
if let LinkType::Static = link_type {
// On Windows, there are some extra libraries needed for static link
// that aren't included by Aeron.
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=iphlpapi");
}
_ => (),
};
}
let cmake_output = Config::new(&aeron_path)
.build_target(link_type.target_name())