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 @@ -429,8 +429,16 @@ fn copy_multiple_ciphers(out_path: &Path) {
429
429
}
430
430
}
431
431
432
- println ! ( "cargo:rustc-link-lib=static=sqlite3mc_static" ) ;
433
432
println ! ( "cargo:rustc-link-search={}" , dst. join( "build" ) . display( ) ) ;
433
+ println ! (
434
+ "cargo:rustc-link-search={}" ,
435
+ dst. join( "build" ) . join( "Release" ) . display( )
436
+ ) ;
437
+ println ! (
438
+ "cargo:rustc-link-search={}" ,
439
+ dst. join( "build" ) . join( "Debug" ) . display( )
440
+ ) ;
441
+ println ! ( "cargo:rustc-link-lib=static=sqlite3mc_static" ) ;
434
442
}
435
443
436
444
fn build_multiple_ciphers ( out_path : & Path ) -> PathBuf {
@@ -467,7 +475,7 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
467
475
let mut config = cmake:: Config :: new ( & bundled_dir) ;
468
476
469
477
config
470
- . define ( "CMAKE_BUILD_TYPE" , "Release ")
478
+ . build_target ( "sqlite3mc_static ")
471
479
. define ( "SQLITE3MC_STATIC" , "ON" )
472
480
. define ( "CODEC_TYPE" , "AES256" )
473
481
. define ( "SQLITE3MC_BUILD_SHELL" , "OFF" )
You can’t perform that action at this time.
0 commit comments