Use cc crate instead of gcc

This commit is contained in:
Aleksey Ivanov
2017-09-26 15:30:06 +03:00
parent 0d469907b7
commit 19b8481662
2 changed files with 5 additions and 3 deletions

View File

@@ -8,4 +8,4 @@ build = "build.rs"
libc = "0.1"
[build-dependencies]
gcc = "0.3"
cc = "1.0"

View File

@@ -1,5 +1,7 @@
extern crate gcc;
extern crate cc;
fn main() {
gcc::Config::new().file("src/double.c").compile("libdouble.a");
cc::Build::new()
.file("src/double.c")
.compile("libdouble.a");
}