mirror of https://github.com/m-labs/artiq
17 lines
342 B
Rust
17 lines
342 B
Rust
extern crate build_misoc;
|
|
extern crate cc;
|
|
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
build_misoc::cfg();
|
|
|
|
let vectors_path = "riscv32/vectors.S";
|
|
|
|
println!("cargo:rerun-if-changed={}", vectors_path);
|
|
cc::Build::new()
|
|
.flag("--target=riscv32-unknown-elf")
|
|
.file(Path::new(vectors_path))
|
|
.compile("vectors");
|
|
}
|