If the host_env feature is enabled, then enable the _ctypes module on the Android platform. (#7402)

This commit is contained in:
EtherealPsyche authored and GitHub committed 2026-03-13 01:20:32 +09:00
1 parent 76556540d1
commit 18147fda61
2 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -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"
+12 -2
View File
@@ -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),