diff --git a/crates/vm/Cargo.toml b/crates/vm/Cargo.toml index 78b1608673e..5f7e901b834 100644 --- a/crates/vm/Cargo.toml +++ b/crates/vm/Cargo.toml @@ -104,7 +104,7 @@ which = "8" errno = "0.3" widestring = { workspace = true } -[target.'cfg(all(any(target_os = "linux", target_os = "macos", target_os = "windows"), not(any(target_env = "musl", target_env = "sgx"))))'.dependencies] +[target.'cfg(all(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "android"), not(any(target_env = "musl", target_env = "sgx"))))'.dependencies] libffi = { workspace = true, features = ["system"] } libloading = "0.9" diff --git a/crates/vm/src/stdlib/mod.rs b/crates/vm/src/stdlib/mod.rs index 42514c46dda..97fb4b372cf 100644 --- a/crates/vm/src/stdlib/mod.rs +++ b/crates/vm/src/stdlib/mod.rs @@ -40,7 +40,12 @@ pub mod posix; #[cfg(all( feature = "host_env", - any(target_os = "linux", target_os = "macos", target_os = "windows"), + any( + target_os = "linux", + target_os = "macos", + target_os = "windows", + target_os = "android" + ), not(any(target_env = "musl", target_env = "sgx")) ))] mod _ctypes; @@ -87,7 +92,12 @@ pub fn builtin_module_defs(ctx: &Context) -> Vec<&'static PyModuleDef> { _collections::module_def(ctx), #[cfg(all( feature = "host_env", - any(target_os = "linux", target_os = "macos", target_os = "windows"), + any( + target_os = "linux", + target_os = "macos", + target_os = "windows", + target_os = "android" + ), not(any(target_env = "musl", target_env = "sgx")) ))] _ctypes::module_def(ctx),