File: build.rs

package info (click to toggle)
rust-opt-level 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use std::env;
use std::fs;
use std::path::Path;

fn main() {
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let opt_level = env::var("OPT_LEVEL").unwrap();
    let dest_path = Path::new(&out_dir).join("opt-level");
    fs::write(dest_path, opt_level).unwrap();
}