Skip to content

Commit 2850f47

Browse files
committed
adjust link order
Signed-off-by: MeteroSky <meteorskymail@gmail.com>
1 parent 31fbd32 commit 2850f47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librocksdb_sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ fn build_rocksdb() -> Build {
171171
.very_verbose(true)
172172
.build();
173173
let build_dir = format!("{}/build", dst.display());
174-
link_optional_uring(&build_dir);
175174
let mut build = Build::new();
176175
if target_os == "windows" {
177176
let profile = match &*env::var("PROFILE").unwrap_or_else(|_| "debug".to_owned()) {
@@ -212,6 +211,7 @@ fn build_rocksdb() -> Build {
212211
println!("cargo:rustc-link-lib=static=lz4");
213212
println!("cargo:rustc-link-lib=static=zstd");
214213
println!("cargo:rustc-link-lib=static=snappy");
214+
link_optional_uring(&build_dir);
215215

216216
println!(
217217
"cargo:rerun-if-changed={}",

0 commit comments

Comments
 (0)