Commit 99f4edd6 authored by siddontang's avatar siddontang Committed by GitHub

add sse feature (#28)

parent 29b7f64a
...@@ -19,6 +19,7 @@ default = [] ...@@ -19,6 +19,7 @@ default = []
valgrind = [] valgrind = []
static-link = ["librocksdb_sys/static-link"] static-link = ["librocksdb_sys/static-link"]
portable = ["librocksdb_sys/portable"] portable = ["librocksdb_sys/portable"]
sse = ["librocksdb_sys/sse"]
[[test]] [[test]]
......
...@@ -14,6 +14,7 @@ static-link = [] ...@@ -14,6 +14,7 @@ static-link = []
# portable doesn't require static link, though it's meaningless # portable doesn't require static link, though it's meaningless
# when not using with static-link right now in this crate. # when not using with static-link right now in this crate.
portable = [] portable = []
sse = []
[build-dependencies] [build-dependencies]
gcc = "0.3" gcc = "0.3"
...@@ -64,6 +64,10 @@ fn main() { ...@@ -64,6 +64,10 @@ fn main() {
if cfg!(feature = "portable") { if cfg!(feature = "portable") {
cmd.env("PORTABLE", "1"); cmd.env("PORTABLE", "1");
} }
if cfg!(feature = "sse") {
cmd.env("USE_SSE", "1");
}
} }
run(&mut cmd); run(&mut cmd);
} }
......
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