Skip to content

Commit 9ffd0fe

Browse files
author
Jorge Aparicio
committed
arm-musl targets now use cfg(env = "musl")
1 parent f7247d1 commit 9ffd0fe

File tree

8 files changed

+9
-17
lines changed

8 files changed

+9
-17
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
url = https://github.com/rust-lang/rust-installer.git
1717
[submodule "src/liblibc"]
1818
path = src/liblibc
19-
url = https://github.com/rust-lang/libc.git
19+
url = https://github.com/japaric/libc.git

src/liballoc_jemalloc/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ use libc::{c_int, c_void, size_t};
3636
#[cfg_attr(target_os = "android", link(name = "gcc"))]
3737
#[cfg_attr(all(not(windows),
3838
not(target_os = "android"),
39-
not(target_env = "musl"),
40-
not(target_env = "musleabi"),
41-
not(target_env = "musleabihf")),
39+
not(target_env = "musl")),
4240
link(name = "pthread"))]
4341
#[cfg(not(cargobuild))]
4442
extern "C" {}

src/liblibc

src/librustc_back/target/arm_unknown_linux_musleabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn target() -> Target {
2626
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2727
arch: "arm".to_string(),
2828
target_os: "linux".to_string(),
29-
target_env: "musleabi".to_string(),
29+
target_env: "musl".to_string(),
3030
target_vendor: "unknown".to_string(),
3131
options: base,
3232
}

src/librustc_back/target/arm_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn target() -> Target {
2626
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2727
arch: "arm".to_string(),
2828
target_os: "linux".to_string(),
29-
target_env: "musleabi".to_string(),
29+
target_env: "musl".to_string(),
3030
target_vendor: "unknown".to_string(),
3131
options: base,
3232
}

src/librustc_back/target/armv7_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn target() -> Target {
2727
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2828
arch: "arm".to_string(),
2929
target_os: "linux".to_string(),
30-
target_env: "musleabi".to_string(),
30+
target_env: "musl".to_string(),
3131
target_vendor: "unknown".to_string(),
3232
options: base,
3333
}

src/libstd/rtdeps.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
//
2020
// On Linux, librt and libdl are indirect dependencies via std,
2121
// and binutils 2.22+ won't add them automatically
22-
#[cfg(all(target_os = "linux", not(any(target_env = "musl",
23-
target_env = "musleabi",
24-
target_env = "musleabihf"))))]
22+
#[cfg(all(target_os = "linux", not(any(target_env = "musl"))))]
2523
#[link(name = "dl")]
2624
#[link(name = "pthread")]
2725
extern {}

src/libstd/sys/unix/thread.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ impl Drop for Thread {
171171
}
172172
}
173173

174-
#[cfg(all(not(all(target_os = "linux", not(any(target_env = "musl",
175-
target_env = "musleabi",
176-
target_env = "musleabihf")))),
174+
#[cfg(all(not(all(target_os = "linux", not(any(target_env = "musl")))),
177175
not(target_os = "freebsd"),
178176
not(target_os = "macos"),
179177
not(target_os = "bitrig"),
@@ -187,9 +185,7 @@ pub mod guard {
187185
}
188186

189187

190-
#[cfg(any(all(target_os = "linux", not(any(target_env = "musl",
191-
target_env = "musleabi",
192-
target_env = "musleabihf"))),
188+
#[cfg(any(all(target_os = "linux", not(any(target_env = "musl"))),
193189
target_os = "freebsd",
194190
target_os = "macos",
195191
target_os = "bitrig",

0 commit comments

Comments
 (0)