Skip to content
Snippets Groups Projects
Commit 1cf98aec authored by Alex Crichton's avatar Alex Crichton
Browse files

Get MUSL working

parent 9e97afd9
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ impl<'a> TestGenerator<'a> {
let mut ret = Vec::new();
// Pull in extra goodies on linux
if self.target.contains("unknown-linux") {
if self.target.contains("unknown-linux-gnu") {
ret.push("_GNU_SOURCE");
}
......@@ -211,8 +211,10 @@ impl<'a> TestGenerator<'a> {
} else {
panic!("unknown arch/pointer width: {}", self.target)
};
let (os, family, env) = if self.target.contains("unknown-linux") {
let (os, family, env) = if self.target.contains("unknown-linux-gnu") {
("linux", "unix", "gnu")
} else if self.target.contains("unknown-linux-musl") {
("linux", "unix", "musl")
} else if self.target.contains("apple-darwin") {
("macos", "unix", "")
} else if self.target.contains("windows-msvc") {
......
......@@ -120,6 +120,8 @@ pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 131;
pub const RLIMIT_NLIMITS: ::c_int = 16;
pub const RLIM_SAVED_MAX: ::rlim_t = ::RLIM_INFINITY;
pub const RLIM_SAVED_CUR: ::rlim_t = ::RLIM_INFINITY;
#[cfg(not(target_env = "musl"))]
pub const RUSAGE_THREAD: ::c_int = 1;
pub const GLOB_ERR: ::c_int = 1 << 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment