Skip to content

Commit fd10e3c

Browse files
committed
fix: don't specify static object format
1 parent 11f14ea commit fd10e3c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

libsql-ffi/build.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn main() {
5050
}
5151

5252
if cfg!(feature = "multiple-ciphers") {
53-
copy_multiple_ciphers(&out_dir, &out_path);
53+
copy_multiple_ciphers(&out_path);
5454
return;
5555
}
5656

@@ -409,16 +409,11 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
409409
println!("cargo:lib_dir={out_dir}");
410410
}
411411

412-
fn copy_multiple_ciphers(out_dir: &str, out_path: &Path) {
412+
fn copy_multiple_ciphers(out_path: &Path) {
413413
let dst = dbg!(build_multiple_ciphers(out_path));
414414

415-
copy_with_cp(
416-
dbg!(dst.join("build").join("libsqlite3mc_static.a")),
417-
dbg!(format!("{out_dir}/libsqlite3mc.a")),
418-
)
419-
.unwrap();
420-
println!("cargo:rustc-link-lib=static=sqlite3mc");
421-
println!("cargo:rustc-link-search={out_dir}");
415+
println!("cargo:rustc-link-lib=static=sqlite3mc_static");
416+
println!("cargo:rustc-link-search={}", dst.join("build").display());
422417
}
423418

424419
fn build_multiple_ciphers(out_path: &Path) -> PathBuf {

0 commit comments

Comments
 (0)