Merge pull request #66 from alexcrichton/librt

Link to librt on non-apple platforms
This commit is contained in:
Alex Crichton 2015-11-20 14:16:52 -08:00
commit 453add48b8
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
language: rust
sudo: required
dist: trusty
rust:
- 1.0.0
- beta

View file

@ -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 {}
}
}