forked from M-Labs/artiq
libboard: use libbuild_artiq
This commit is contained in:
parent
c5fe2799cf
commit
091bb28043
@ -8,6 +8,9 @@ build = "build.rs"
|
||||
name = "board"
|
||||
path = "lib.rs"
|
||||
|
||||
[build-dependencies]
|
||||
build_artiq = { path = "../libbuild_artiq" }
|
||||
|
||||
[dependencies]
|
||||
log = { version = "0.3", default-features = false }
|
||||
|
||||
|
@ -1,15 +1,5 @@
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
use std::io::{BufRead, BufReader};
|
||||
use std::fs::File;
|
||||
extern crate build_artiq;
|
||||
|
||||
fn main() {
|
||||
let out_dir = env::var("BUILDINC_DIRECTORY").unwrap();
|
||||
let cfg_path = Path::new(&out_dir).join("generated").join("rust-cfg");
|
||||
println!("cargo:rerun-if-changed={}", cfg_path.to_str().unwrap());
|
||||
|
||||
let f = BufReader::new(File::open(&cfg_path).unwrap());
|
||||
for line in f.lines() {
|
||||
println!("cargo:rustc-cfg={}", line.unwrap());
|
||||
}
|
||||
build_artiq::misoc_cfg();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user