1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 16:36:18 +04:00
rCore/build.rs

11 lines
249 B
Rust
Raw Normal View History

2018-04-11 17:27:11 +04:00
extern crate cc;
fn main() {
2018-04-11 17:48:29 +04:00
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");
2018-04-11 17:27:11 +04:00
}