You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
249 B

extern crate cc;
fn main() {
7 years ago
let mut build = cc::Build::new();
let compiler = if build.get_compiler().is_like_clang()
{ "x86_64-elf-gcc" } else {"gcc"};
build.compiler(compiler)
.file("src/test.c")
.compile("cobj");
}