diff --git a/vm/src/stdlib/sys.rs b/vm/src/stdlib/sys.rs index fbd6f0de8f..4a4d60ef2a 100644 --- a/vm/src/stdlib/sys.rs +++ b/vm/src/stdlib/sys.rs @@ -67,11 +67,14 @@ mod sys { #[pyattr(name = "platform")] pub(crate) const PLATFORM: &str = { cfg_if::cfg_if! { - if #[cfg(any(target_os = "linux", target_os = "android"))] { - // Android is linux as well. see https://bugs.python.org/issue32637 + if #[cfg(target_os = "linux")] { "linux" + } else if #[cfg(target_os = "android")] { + "android" } else if #[cfg(target_os = "macos")] { "darwin" + } else if #[cfg(target_os = "ios")] { + "ios" } else if #[cfg(windows)] { "win32" } else if #[cfg(target_os = "wasi")] {