upgrade gcc crate to cc
This commit is contained in:
parent
2f2167c027
commit
46ad5e2bb2
@ -15,7 +15,7 @@ version = "0.3.0"
|
|||||||
repository = "FauxFaux/apt-pkg-native-rs"
|
repository = "FauxFaux/apt-pkg-native-rs"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
gcc = "0.3"
|
cc = "1.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
|
4
build.rs
4
build.rs
@ -1,11 +1,11 @@
|
|||||||
extern crate gcc;
|
extern crate cc;
|
||||||
|
|
||||||
const SRC: &str = "apt-pkg-c/lib.cpp";
|
const SRC: &str = "apt-pkg-c/lib.cpp";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rerun-if-changed={}", SRC);
|
println!("cargo:rerun-if-changed={}", SRC);
|
||||||
|
|
||||||
let mut build = gcc::Build::new();
|
let mut build = cc::Build::new();
|
||||||
build.file(SRC);
|
build.file(SRC);
|
||||||
build.cpp(true);
|
build.cpp(true);
|
||||||
build.flag("-std=gnu++11");
|
build.flag("-std=gnu++11");
|
||||||
|
Loading…
Reference in New Issue
Block a user