Link to librt on non-apple platforms
This commit is contained in:
parent
8531cc11e1
commit
68a5c445b0
|
@ -1,5 +1,6 @@
|
|||
language: rust
|
||||
sudo: required
|
||||
dist: trusty
|
||||
rust:
|
||||
- 1.0.0
|
||||
- beta
|
||||
|
|
|
@ -105,9 +105,14 @@ cfg_if! {
|
|||
} else if #[cfg(target_env = "musl")] {
|
||||
#[link(name = "c", kind = "static")]
|
||||
extern {}
|
||||
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
|
||||
#[link(name = "c")]
|
||||
#[link(name = "m")]
|
||||
extern {}
|
||||
} else {
|
||||
#[link(name = "c")]
|
||||
#[link(name = "m")]
|
||||
#[link(name = "rt")]
|
||||
extern {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue