summaryrefslogtreecommitdiffstats
path: root/vendor/compiletest_rs/build.rs
blob: c72d9e55a75ea83ad31bb129812e3ef8a5d55cb0 (plain)
1
2
3
4
5
6
7
8
use std::env;

pub fn main() {
    if env::var("CARGO_FEATURE_RUSTC").is_err() {
        println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
        println!("cargo:rustc-env=HOST={}", env::var("HOST").unwrap());
    }
}