Skip to content

Commit 074a0b8

Browse files
committed
extract condition
Signed-off-by: Alexander Droste <[email protected]>
1 parent d9b7c16 commit 074a0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vortex-duckdb-ext/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ fn extract_duckdb_libraries(archive_path: PathBuf) -> Result<PathBuf, Box<dyn st
5252
.ok_or("Invalid archive path")?
5353
.to_path_buf();
5454

55-
// Check if already extracted.
56-
if duckdb_dir.join("libduckdb.dylib").exists() && duckdb_dir.join("libduckdb.so").exists() {
55+
// Check if already extracted. The archive for Linux only contains a .so library, macOS only .dylib.
56+
if duckdb_dir.join("libduckdb.dylib").exists() || duckdb_dir.join("libduckdb.so").exists() {
5757
println!("DuckDB libraries already extracted, skipping extraction");
5858
return Ok(duckdb_dir);
5959
}

0 commit comments

Comments
 (0)