mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 21:38:09 -05:00
Merge #26
26: Minor build cleanup r=bspeice a=bspeice bors r+ Co-authored-by: Bradlee Speice <bradlee@speice.io>
This commit is contained in:
commit
c59164951b
@ -47,17 +47,14 @@ pub fn main() {
|
|||||||
link_type.target_name()
|
link_type.target_name()
|
||||||
);
|
);
|
||||||
|
|
||||||
match link_type {
|
if let LinkType::Static = link_type {
|
||||||
LinkType::Static => {
|
// On Windows, there are some extra libraries needed for static link
|
||||||
// On Windows, there are some extra libraries needed for static link
|
// that aren't included by Aeron.
|
||||||
// that aren't included by Aeron.
|
if cfg!(target_os = "windows") {
|
||||||
if cfg!(target_os = "windows") {
|
println!("cargo:rustc-link-lib=shell32");
|
||||||
println!("cargo:rustc-link-lib=shell32");
|
println!("cargo:rustc-link-lib=iphlpapi");
|
||||||
println!("cargo:rustc-link-lib=iphlpapi");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => (),
|
}
|
||||||
};
|
|
||||||
|
|
||||||
let cmake_output = Config::new(&aeron_path)
|
let cmake_output = Config::new(&aeron_path)
|
||||||
.build_target(link_type.target_name())
|
.build_target(link_type.target_name())
|
||||||
|
@ -17,5 +17,5 @@ memmap = "0.7"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
ctrlc = "3.1.3"
|
ctrlc = "=3.1.3"
|
||||||
tempfile = "3.1"
|
tempfile = "3.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user