File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -518,9 +518,20 @@ impl SDKBuilder {
518
518
command. compile ( "ledger-secure-sdk" ) ;
519
519
520
520
/* Link with libc for unresolved symbols */
521
- let gcc_tc = self . gcc_toolchain . display ( ) . to_string ( ) ;
521
+ let mut path = self . bolos_sdk . display ( ) . to_string ( ) ;
522
+ match self . device {
523
+ Device :: NanoS => {
524
+ path = self . gcc_toolchain . display ( ) . to_string ( ) . push_str ( "/lib" ) ;
525
+ }
526
+ Device :: NanoX => {
527
+ path. push_str ( "/arch/st33/lib" ) ;
528
+ }
529
+ Device :: NanoSPlus | Device :: Flex | Device :: Stax => {
530
+ path. push_str ( "/arch/st33k1/lib" ) ;
531
+ }
532
+ } ;
522
533
println ! ( "cargo:rustc-link-lib=c" ) ;
523
- println ! ( "cargo:rustc-link-search={gcc_tc}/lib " ) ;
534
+ println ! ( "cargo:rustc-link-search={path} " ) ;
524
535
}
525
536
526
537
fn generate_bindings ( & self ) {
You can’t perform that action at this time.
0 commit comments