Commit 8336f84a authored by goroutine's avatar goroutine Committed by GitHub

Merge pull request #70 from pingcap/revert-68-master

Revert "explicit fail when rocksdb version is too low"
parents cc896542 55806a74
...@@ -18,4 +18,3 @@ sse = [] ...@@ -18,4 +18,3 @@ sse = []
[build-dependencies] [build-dependencies]
gcc = "0.3" gcc = "0.3"
pkg-config = "0.3.8"
extern crate gcc; extern crate gcc;
extern crate pkg_config;
use std::{env, fs, str}; use std::{env, fs, str};
use std::path::PathBuf; use std::path::PathBuf;
...@@ -13,15 +13,7 @@ macro_rules! t { ...@@ -13,15 +13,7 @@ macro_rules! t {
} }
fn main() { fn main() {
const ROCKSDB_VERSION: &'static str = "5.4";
if !cfg!(feature = "static-link") { if !cfg!(feature = "static-link") {
match pkg_config::Config::new().atleast_version(ROCKSDB_VERSION).probe("rocksdb") {
Ok(_) => (),
Err(_) => {
panic!("failed to find rocksdb >= {} by pkg-config", ROCKSDB_VERSION);
}
}
gcc::Config::new() gcc::Config::new()
.cpp(true) .cpp(true)
.file("crocksdb/c.cc") .file("crocksdb/c.cc")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment