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

Merge pull request #22 from alexcrichton/musl-pthread

Be more selective about skipped pthread on musl tests
parents 1effc23b 3a572fda
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
......@@ -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 {
......
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