build: init

pull/4/head
occheung 2020-09-24 23:19:56 +08:00
parent 10d265b480
commit e2371af952
1 changed files with 10 additions and 0 deletions

10
build.rs Normal file
View File

@ -0,0 +1,10 @@
use std::process::Command;
fn main() {
Command::new("python3")
.arg("migen/fpga_config.py")
.spawn()
.expect("FPGA bitstream file cannot be built!");
println!("cargo:rerun-if-changed=migen/fpga_config.py")
}