jpp/lab1/zad6/build.rs

16 lines
351 B
Rust

extern crate cc;
fn main() {
let module =
if cfg!(feature = "iter") {
"src/mod_iter.c"
} else if cfg!(feature = "rec") {
"src/mod_rec.c"
} else {
panic!("unknown module type")
};
cc::Build::new()
.file(module)
.shared_flag(true)
.compile("mod.a");
}