File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -412,8 +412,16 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
412
412
fn copy_multiple_ciphers ( out_path : & Path ) {
413
413
let dst = dbg ! ( build_multiple_ciphers( out_path) ) ;
414
414
415
- println ! ( "cargo:rustc-link-lib=static=sqlite3mc_static" ) ;
416
415
println ! ( "cargo:rustc-link-search={}" , dst. join( "build" ) . display( ) ) ;
416
+ println ! (
417
+ "cargo:rustc-link-search={}" ,
418
+ dst. join( "build" ) . join( "Release" ) . display( )
419
+ ) ;
420
+ println ! (
421
+ "cargo:rustc-link-search={}" ,
422
+ dst. join( "build" ) . join( "Debug" ) . display( )
423
+ ) ;
424
+ println ! ( "cargo:rustc-link-lib=static=sqlite3mc_static" ) ;
417
425
}
418
426
419
427
fn build_multiple_ciphers ( out_path : & Path ) -> PathBuf {
@@ -450,7 +458,7 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
450
458
let mut config = cmake:: Config :: new ( & bundled_dir) ;
451
459
452
460
config
453
- . define ( "CMAKE_BUILD_TYPE" , "Release ")
461
+ . build_target ( "sqlite3mc_static ")
454
462
. define ( "SQLITE3MC_STATIC" , "ON" )
455
463
. define ( "CODEC_TYPE" , "AES256" )
456
464
. define ( "SQLITE3MC_BUILD_SHELL" , "OFF" )
You can’t perform that action at this time.
0 commit comments