From 21a05f9f2a4f8d0d56bb52925fd061271a20e2d4 Mon Sep 17 00:00:00 2001 From: Matthew Gregan Date: Thu, 19 Mar 2026 08:23:16 +1300 Subject: [PATCH] Allow building the macOS backend for iOS targets. --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f82cc98..113d880 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ terminal-logging = ["simple_logger"] with_dbus = ["dbus"] default = ["with_dbus"] -[target.'cfg(target_os = "macos")'.dependencies] +[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] mach2 = "0.4" libc = "0.2" diff --git a/src/lib.rs b/src/lib.rs index 68e11a1..76cc2b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,7 @@ impl Error for AudioThreadPriorityError { } cfg_if! { - if #[cfg(target_os = "macos")] { + if #[cfg(any(target_os = "macos", target_os = "ios"))] { mod rt_mach; extern crate mach2; extern crate libc;