File: build.rs

package info (click to toggle)
rust-compiletest-rs 0.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: makefile: 4
file content (8 lines) | stat: -rw-r--r-- 261 bytes parent folder | download
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=COMPILETEST_TARGET={}", env::var("TARGET").unwrap());
        println!("cargo:rustc-env=COMPILETEST_HOST={}", env::var("HOST").unwrap());
    }
}