Skip to content

Commit 5066b7d

Browse files
authored
Merge pull request #341 from japaric/arm-musl
arm-musl targets now use cfg(target_env = "musl")
2 parents 0926113 + 23a5092 commit 5066b7d

File tree

3 files changed

+8
-26
lines changed

3 files changed

+8
-26
lines changed

src/unix/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ s! {
5555
pub ru_nvcsw: c_long,
5656
pub ru_nivcsw: c_long,
5757

58-
#[cfg(any(target_env = "musl",
59-
target_env = "musleabi",
60-
target_env = "musleabihf"))]
58+
#[cfg(any(target_env = "musl"))]
6159
__reserved: [c_long; 16],
6260
}
6361

@@ -199,9 +197,7 @@ cfg_if! {
199197
} else if #[cfg(all(not(stdbuild), feature = "use_std"))] {
200198
// cargo build, don't pull in anything extra as the libstd dep
201199
// already pulls in all libs.
202-
} else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips")),
203-
target_env = "musleabi",
204-
target_env = "musleabihf"))] {
200+
} else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips"))))] {
205201
#[link(name = "c", kind = "static")]
206202
extern {}
207203
} else if #[cfg(target_os = "emscripten")] {

src/unix/notbsd/linux/mod.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,9 @@ s! {
9393
}
9494

9595
pub struct pthread_cond_t {
96-
#[cfg(any(target_env = "musl",
97-
target_env = "musleabi",
98-
target_env = "musleabihf"))]
96+
#[cfg(any(target_env = "musl"))]
9997
__align: [*const ::c_void; 0],
100-
#[cfg(not(any(target_env = "musl",
101-
target_env = "musleabi",
102-
target_env = "musleabihf")))]
98+
#[cfg(not(any(target_env = "musl")))]
10399
__align: [::c_longlong; 0],
104100
size: [u8; __SIZEOF_PTHREAD_COND_T],
105101
}
@@ -663,8 +659,6 @@ extern {
663659

664660
cfg_if! {
665661
if #[cfg(any(target_env = "musl",
666-
target_env = "musleabi",
667-
target_env = "musleabihf",
668662
target_os = "emscripten"))] {
669663
mod musl;
670664
pub use self::musl::*;

src/unix/notbsd/mod.rs

+4-12
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,13 @@ s! {
100100

101101
pub struct sched_param {
102102
pub sched_priority: ::c_int,
103-
#[cfg(any(target_env = "musl",
104-
target_env = "musleabi",
105-
target_env = "musleabihf"))]
103+
#[cfg(any(target_env = "musl"))]
106104
pub sched_ss_low_priority: ::c_int,
107-
#[cfg(any(target_env = "musl",
108-
target_env = "musleabi",
109-
target_env = "musleabihf"))]
105+
#[cfg(any(target_env = "musl"))]
110106
pub sched_ss_repl_period: ::timespec,
111-
#[cfg(any(target_env = "musl",
112-
target_env = "musleabi",
113-
target_env = "musleabihf"))]
107+
#[cfg(any(target_env = "musl"))]
114108
pub sched_ss_init_budget: ::timespec,
115-
#[cfg(any(target_env = "musl",
116-
target_env = "musleabi",
117-
target_env = "musleabihf"))]
109+
#[cfg(any(target_env = "musl"))]
118110
pub sched_ss_max_repl: ::c_int,
119111
}
120112

0 commit comments

Comments
 (0)