From 7a3f70e9016d7f3ad971766d57f2cfcb70f8092c Mon Sep 17 00:00:00 2001 From: Xianzhe Liang Date: Wed, 10 Jan 2024 09:57:51 -0800 Subject: [PATCH] Update submodule before build rocks. --- cozorocks/build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cozorocks/build.rs b/cozorocks/build.rs index a41a505f..50c9b5b5 100644 --- a/cozorocks/build.rs +++ b/cozorocks/build.rs @@ -61,6 +61,10 @@ fn main() { } } + if !Path::new("rocksdb/AUTHORS").exists() { + update_submodules(); + } + builder.compile("cozorocks"); println!("cargo:rustc-link-lib=static=rocksdb"); println!("cargo:rustc-link-lib=static=zstd"); @@ -82,10 +86,6 @@ fn main() { println!("cargo:rerun-if-changed=bridge/tx.h"); println!("cargo:rerun-if-changed=bridge/tx.cpp"); - if !Path::new("rocksdb/AUTHORS").exists() { - update_submodules(); - } - if !try_to_find_and_link_lib("ROCKSDB") { println!("cargo:rerun-if-changed=rocksdb/"); fail_on_empty_directory("rocksdb");