Merge pull request #13 from ivanovaleksey/gcc-deprecation
Use gcc::Build instead of gcc::Config
This commit is contained in:
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
libc = "0.1"
|
||||
|
||||
[build-dependencies]
|
||||
gcc = "0.3"
|
||||
cc = "1.0"
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user