File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ llvm-tools = { version = "0.1.1", optional = true }
4444default = [" llvm-objcopy" ]
4545arm-none-eabi-objcopy = []
4646llvm-objcopy = [" dep:llvm-tools" ]
47+ log = []
4748
4849nrf9160 = []
4950nrf9151 = [" nrf9120" ]
Original file line number Diff line number Diff line change @@ -95,12 +95,18 @@ fn main() {
9595 std:: fs:: write ( bindings_out_path, rust_source) . expect ( "Couldn't write updated bindgen output" ) ;
9696
9797 #[ cfg( feature = "nrf9160" ) ]
98- let libmodem_original_path =
99- Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9160/hard-float/libmodem.a" ) ;
98+ let libmodem_original_path = if cfg ! ( feature = "log" ) {
99+ Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9160/hard-float/libmodem_log.a" )
100+ } else {
101+ Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9160/hard-float/libmodem.a" )
102+ } ;
100103
101104 #[ cfg( feature = "nrf9120" ) ]
102- let libmodem_original_path =
103- Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9120/hard-float/libmodem.a" ) ;
105+ let libmodem_original_path = if cfg ! ( feature = "log" ) {
106+ Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9120/hard-float/libmodem_log.a" )
107+ } else {
108+ Path :: new ( & nrfxlib_path) . join ( "nrf_modem/lib/cellular/nrf9120/hard-float/libmodem.a" )
109+ } ;
104110
105111 let libmodem_changed_path = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "libmodem.a" ) ;
106112
You can’t perform that action at this time.
0 commit comments