Skip to content

Commit

Permalink
Merge pull request rust-lang#22 from alexcrichton/musl-pthread
Browse files Browse the repository at this point in the history
Be more selective about skipped pthread on musl tests
  • Loading branch information
alexcrichton committed Oct 30, 2015
2 parents 1effc23 + 3a572fd commit 171b05b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fn main() {
"SIG_IGN" => true, // sighandler_t weirdness

// types on musl are defined a little differently
n if musl && n.contains("PTHREAD") => true,
n if musl && n.contains("__SIZEOF_PTHREAD") => true,

_ => false,
}
Expand Down
4 changes: 3 additions & 1 deletion src/unix/notbsd/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ extern {
}

cfg_if! {
if #[cfg(any(target_arch = "arm", target_arch = "x86",
if #[cfg(any(target_env = "musl"))] {
pub const PTHREAD_STACK_MIN: ::size_t = 2048;
} else if #[cfg(any(target_arch = "arm", target_arch = "x86",
target_arch = "x86_64"))] {
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
} else {
Expand Down

0 comments on commit 171b05b

Please sign in to comment.