Skip to content

Commit 0c8e61a

Browse files
committed
Don't link librt on android
1 parent 90e0cea commit 0c8e61a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/unix/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ cfg_if! {
105105
} else if #[cfg(target_env = "musl")] {
106106
#[link(name = "c", kind = "static")]
107107
extern {}
108-
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
108+
} else if #[cfg(any(target_os = "macos",
109+
target_os = "ios",
110+
target_os = "android"))] {
109111
#[link(name = "c")]
110112
#[link(name = "m")]
111113
extern {}

0 commit comments

Comments
 (0)