bump gcc to cc 1.0+ (for actual parallel builds)

master
Rick Richardson 7 years ago
parent 6ca99a8121
commit 963b8cba51
  1. 2
      librocksdb-sys/Cargo.toml
  2. 6
      librocksdb-sys/build.rs

@ -22,6 +22,6 @@ libc = "0.2"
const-cstr = "0.2"
[build-dependencies]
gcc = { version = "0.3", features = ["parallel"] }
cc = { version = "^1.0", features = ["parallel"] }
make-cmd = "0.1"
bindgen = "0.29"

@ -1,4 +1,4 @@
extern crate gcc;
extern crate cc;
extern crate bindgen;
use std::env;
@ -45,7 +45,7 @@ fn build_rocksdb() {
.write_to_file(out_path.join("bindings.rs"))
.expect("unable to write rocksdb bindings");
let mut config = gcc::Build::new();
let mut config = cc::Build::new();
config.include("rocksdb/include/");
config.include("rocksdb/");
config.include("rocksdb/third-party/gtest-1.7.0/fused-src/");
@ -130,7 +130,7 @@ fn build_rocksdb() {
}
fn build_snappy() {
let mut config = gcc::Build::new();
let mut config = cc::Build::new();
config.include("snappy/");
config.include(".");

Loading…
Cancel
Save