From 963b8cba5166c7cc0b97cc2c79e0e93b51fc41fa Mon Sep 17 00:00:00 2001 From: Rick Richardson Date: Fri, 20 Oct 2017 08:35:30 -0700 Subject: [PATCH] bump gcc to cc 1.0+ (for actual parallel builds) --- librocksdb-sys/Cargo.toml | 2 +- librocksdb-sys/build.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index 321c654..4f5adc0 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -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" diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index 47a74a3..b0b2d10 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -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(".");