mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 16:36:18 +04:00
11 lines
249 B
Rust
11 lines
249 B
Rust
extern crate cc;
|
|
|
|
fn main() {
|
|
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");
|
|
} |