From 8387c3953ecd3e1c395412fd95a1f2d1df69c51c Mon Sep 17 00:00:00 2001 From: Luis Cruz Date: Mon, 10 Jul 2023 16:50:38 +0100 Subject: [PATCH] Add apple tvos support --- build.rs | 2 +- src/rand.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 63d0d386c..94f45d115 100644 --- a/build.rs +++ b/build.rs @@ -279,7 +279,7 @@ const LINUX_ABI: &[&str] = &[ /// Operating systems that have the same ABI as macOS on every architecture /// mentioned in `ASM_TARGETS`. -const MACOS_ABI: &[&str] = &["ios", "macos"]; +const MACOS_ABI: &[&str] = &["ios", "macos", "tvos"]; const WINDOWS: &str = "windows"; diff --git a/src/rand.rs b/src/rand.rs index b3a20ffe8..b9072bb16 100644 --- a/src/rand.rs +++ b/src/rand.rs @@ -131,6 +131,7 @@ impl crate::sealed::Sealed for SystemRandom {} target_os = "haiku", target_os = "illumos", target_os = "ios", + target_os = "tvos", target_os = "linux", target_os = "macos", target_os = "netbsd",