forked from libpnet/libpnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.rs
26 lines (22 loc) · 806 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2015 Robert Clipsham <[email protected]>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[cfg(windows)]
fn print_link_search_path() {
use std::env;
let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
if cfg!(target_arch = "x86_64") {
println!("cargo:rustc-link-search=native={}/lib/x64", manifest_dir);
} else {
println!("cargo:rustc-link-search=native={}/lib", manifest_dir);
}
}
#[cfg(not(windows))]
fn print_link_search_path() {}
fn main() {
print_link_search_path();
}