blob: 06a0e4f910cd3018f372d0e72798c3fc760c37c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
let triple: Vec<_> = target.split('-').collect();
let mapped = match triple.get(0) {
Some(&"i686") => "i386",
Some(&"x86_64") => "amd64",
_ => panic!("unknown architecture of {:?}", target),
};
println!("cargo:rustc-link-search=../../../native/win7/{}", mapped);
}
|