Merge pull request #13 from ivanovaleksey/gcc-deprecation

Use gcc::Build instead of gcc::Config
This commit is contained in:
Alex Crichton
2017-09-27 11:37:28 -05:00
committed by GitHub
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");
}