From e2371af95264b72c715a3692f65e42dea50cb563 Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 24 Sep 2020 23:19:56 +0800 Subject: [PATCH] build: init --- build.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..b07ed3a --- /dev/null +++ b/build.rs @@ -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") +}