diff --git a/src/bastion-executor/src/placement.rs b/src/bastion-executor/src/placement.rs index 1d3e0a76..c178a15e 100644 --- a/src/bastion-executor/src/placement.rs +++ b/src/bastion-executor/src/placement.rs @@ -32,19 +32,19 @@ pub struct CoreId { // Linux Section -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] #[inline] fn get_core_ids_helper() -> Option> { linux::get_core_ids() } -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] #[inline] fn set_for_current_helper(core_id: CoreId) { linux::set_for_current(core_id); } -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] mod linux { use std::mem; @@ -377,13 +377,13 @@ mod macos { // Stub Section -#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))] +#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos", target_os = "android")))] #[inline] fn get_core_ids_helper() -> Option> { None } -#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))] +#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos", target_os = "android")))] #[inline] fn set_for_current_helper(core_id: CoreId) {}