From 97b430709ce3c419da3a28b65d2364da6c9e88fa Mon Sep 17 00:00:00 2001 From: cepetr Date: Wed, 20 Nov 2024 12:21:00 +0100 Subject: [PATCH] fix(core): fix rust tests build [no changelog] --- core/embed/rust/src/trezorhal/display.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/trezorhal/display.rs b/core/embed/rust/src/trezorhal/display.rs index 23598b4b18..c614cb5556 100644 --- a/core/embed/rust/src/trezorhal/display.rs +++ b/core/embed/rust/src/trezorhal/display.rs @@ -40,7 +40,9 @@ pub fn text_baseline(font: i32) -> i16 { } pub fn sync() { - #[cfg(not(feature = "framebuffer"))] + // NOTE: The sync operation is not called for tests because the linker + // would otherwise report missing symbols if the tests are built with ASAN. + #[cfg(not(any(feature = "framebuffer", feature = "test")))] unsafe { ffi::display_wait_for_sync(); }