From 5fa7dc2be7fcea4d3ed2562ad5cd116d86355181 Mon Sep 17 00:00:00 2001 From: Tyler Smith <74526874+tylertms@users.noreply.github.com> Date: Tue, 27 Oct 2026 00:25:09 +0000 Subject: [PATCH] fix(runtime): leave the native profiles unread off the hosted runtime --- crates/stela-runtime/src/machine/engine.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/stela-runtime/src/machine/engine.rs b/crates/stela-runtime/src/machine/engine.rs index 4067a87f26..da113f9289 100644 --- a/crates/stela-runtime/src/machine/engine.rs +++ b/crates/stela-runtime/src/machine/engine.rs @@ -8,12 +8,22 @@ mod device_access; mod device_read; mod device_write; mod exclusive; +// The profiles' reports belong to the hosted runtime, which only an Intel +// Mac builds (`crate::hosted`); elsewhere the engine records them unread. #[cfg(all(feature = "std", feature = "native-profile"))] +#[cfg_attr( + not(all(target_os = "macos", target_arch = "x86_64")), + allow(dead_code) +)] pub(crate) mod floating_profile; mod guarded; mod hosted; pub mod installed_code; #[cfg(all(feature = "std", feature = "native-profile"))] +#[cfg_attr( + not(all(target_os = "macos", target_arch = "x86_64")), + allow(dead_code) +)] pub(crate) mod metrics; mod monitor; mod native_timing;