about summary refs log tree commit diff
path: root/src/bootstrap/build.rs
blob: d9810e899a04386a58106daad29130ab582c3dd1 (plain)
1
2
3
4
5
6
7
8
use std::env;

fn main() {
    // this is needed because `HOST` is only available to build scripts.
    let host = env::var("HOST").unwrap();
    println!("cargo:rerun-if-changed=build.rs");
    println!("cargo:rustc-env=BUILD_TRIPLE={host}");
}