File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
424419fn build_multiple_ciphers ( out_path : & Path ) -> PathBuf {
You can’t perform that action at this time.
0 commit comments