mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
If the host_env feature is enabled, then enable the _ctypes module on the Android platform. (#7402)
This commit is contained in:
1 parent
76556540d1
commit
18147fda61
2 files changed
+13
-3
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user