Skip to content

Commit

Permalink
build: don't check for DOC.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nmammeri committed Sep 11, 2024
1 parent cd032ff commit 31ac731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extractous-core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions extractous-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::process::Command;

fn main() {
// Don't run the build script when building docs
if env::var("DOCS_RS").is_ok() {
//if env::var("DOCS_RS").is_ok() {
// Set tika_native source directory and python bindings directory
let root_dir = env::var("CARGO_MANIFEST_DIR").map(PathBuf::from).unwrap();
let tika_native_source_dir = root_dir.join("tika-native");
Expand Down Expand Up @@ -57,7 +57,7 @@ fn main() {

// Tell cargo to tell rustc to link the `tika_native` shared library.
println!("cargo:rustc-link-lib=dylib=tika_native");
}
//}
}

// Run the gradle build command to build tika-native
Expand Down Expand Up @@ -278,4 +278,4 @@ pub fn install_graalvm_ce(install_dir: &PathBuf) -> PathBuf {
}

install_dir.join(main_dir)
}
}

0 comments on commit 31ac731

Please sign in to comment.