From e9058268ce67f6ccd256824e5798cd35c0c3d180 Mon Sep 17 00:00:00 2001 From: Jeanie Date: Sat, 30 May 2026 17:18:38 +0900 Subject: [PATCH] fix cfg gating for gdb-stub in xous-log --- services/xous-log/src/platform/bao1x/implementation.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/xous-log/src/platform/bao1x/implementation.rs b/services/xous-log/src/platform/bao1x/implementation.rs index fa48a57f1..c57249395 100644 --- a/services/xous-log/src/platform/bao1x/implementation.rs +++ b/services/xous-log/src/platform/bao1x/implementation.rs @@ -13,6 +13,7 @@ use utralib::generated::*; pub struct Output { // This element is not used, but rather it prevents the interrupt handler from going out of scope. + #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))] _uart_irq: Pin>, } @@ -88,7 +89,10 @@ pub fn init() -> Output { println!("Mapped UART @ {:08x}", uart.as_ptr() as usize); println!("Process: map success!"); - Output { _uart_irq: uart_irq } + Output { + #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))] + _uart_irq: uart_irq, + } } #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]