Merge pull request #66 from alexcrichton/librt
Link to librt on non-apple platforms
This commit is contained in:
commit
453add48b8
@ -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
Block a user