diff --git a/components/background_hang_monitor/background_hang_monitor.rs b/components/background_hang_monitor/background_hang_monitor.rs index c438541af7b..f8e26972a0f 100644 --- a/components/background_hang_monitor/background_hang_monitor.rs +++ b/components/background_hang_monitor/background_hang_monitor.rs @@ -100,7 +100,10 @@ impl BackgroundHangMonitorRegister for HangMonitorRegister { not(any(target_arch = "arm", target_arch = "aarch64")) ))] let sampler = crate::sampler_linux::LinuxSampler::new(); - #[cfg(any(target_os = "android", target_arch = "arm", target_arch = "aarch64"))] + #[cfg(all( + any(target_os = "android", target_os = "linux"), + any(target_arch = "arm", target_arch = "aarch64") + ))] let sampler = crate::sampler::DummySampler::new(); // When a component is registered, and there's an exit request that