Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,40 +295,6 @@ fn build_bundled_cmake() -> Vec<PathBuf> {
let lbug_lib_path = build_dir.join("build").join("src");
println!("cargo:rustc-link-search=native={}", lbug_lib_path.display());

for dir in [
"utf8proc",
"antlr4_cypher",
"antlr4_runtime",
"re2",
"brotli",
"alp",
"fastpfor",
"parquet",
"thrift",
"snappy",
"zstd",
"miniz",
"mbedtls",
"lz4",
"roaring_bitmap",
"simsimd",
"yyjson",
] {
let lib_path = build_dir
.join("build")
.join("third_party")
.join(dir)
.canonicalize()
.unwrap_or_else(|_| {
panic!(
"Could not find {}/build/third_party/{}",
build_dir.display(),
dir
)
});
println!("cargo:rustc-link-search=native={}", lib_path.display());
}

vec![
lbug_root.join("src/include"),
build_dir.join("build/src"),
Expand Down Expand Up @@ -397,7 +363,7 @@ fn main() {

let manifest_dir = manifest_dir();
let mut bundled = false;
let mut link_bundled_deps = false;
let link_bundled_deps = false;
let mut include_paths = vec![manifest_dir.join("include")];

if let (Ok(lbug_lib_dir), Ok(lbug_include)) =
Expand All @@ -412,7 +378,6 @@ fn main() {
} else {
include_paths.extend(build_bundled_cmake());
bundled = true;
link_bundled_deps = true;
println!("cargo:rustc-env=LBUG_PRECOMPILED_SOURCE=source");
println!("cargo:rustc-env=LBUG_PRECOMPILED_LIBRARY_DIR=");
}
Expand Down
Loading