Skip to content

Commit 21a05f9

Browse files
committed
Allow building the macOS backend for iOS targets.
1 parent e6465fc commit 21a05f9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ terminal-logging = ["simple_logger"]
2424
with_dbus = ["dbus"]
2525
default = ["with_dbus"]
2626

27-
[target.'cfg(target_os = "macos")'.dependencies]
27+
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
2828
mach2 = "0.4"
2929
libc = "0.2"
3030

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Error for AudioThreadPriorityError {
8585
}
8686

8787
cfg_if! {
88-
if #[cfg(target_os = "macos")] {
88+
if #[cfg(any(target_os = "macos", target_os = "ios"))] {
8989
mod rt_mach;
9090
extern crate mach2;
9191
extern crate libc;

0 commit comments

Comments
 (0)