improve build script

main
Ziyang Hu 2 years ago
parent 889ce88a0d
commit 062a3cbb88

@ -10,11 +10,11 @@ license = "AGPL-3.0-or-later"
cxx = "1.0.69"
miette = "5.3.0"
librocksdb-sys = { version = "=0.8.0", features = ["lz4", "zstd"] }
pkg-config = { version = "0.3.25", optional = true }
[features]
jemalloc = ["librocksdb-sys/jemalloc"]
io-uring = ["librocksdb-sys/io-uring", "pkg-config"]
[build-dependencies]
cxx-build = "1.0.69"
cxx-build = "1.0.69"
pkg-config = { version = "0.3.25", optional = true }

@ -29,7 +29,7 @@ fn main() {
if target.contains("linux") {
pkg_config::probe_library("liburing")
.expect("The io-uring feature was requested but the library is not available");
config.define("ROCKSDB_IOURING_PRESENT", Some("1"));
builder.define("ROCKSDB_IOURING_PRESENT", Some("1"));
}
builder.compile("cozorocks");

Loading…
Cancel
Save