File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 5
5
6
6
set -eux
7
7
8
- case ${1} in
9
- loongarch64)
10
- musl_version=1.2.5
11
- ;;
12
- * )
13
- [ -n " ${RUST_LIBC_UNSTABLE_MUSL_V1_2_3:- } " ] && musl_version=1.2.3 || musl_version=1.1.24
14
- ;;
15
- esac
16
-
8
+ musl_version=1.2.5
17
9
musl=" musl-${musl_version} "
18
10
19
11
# Download, configure, build, and install musl:
Original file line number Diff line number Diff line change @@ -241,7 +241,11 @@ cfg_if! {
241
241
}
242
242
243
243
cfg_if ! {
244
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
244
+ if #[ cfg( any(
245
+ target_env = "gnu" ,
246
+ target_os = "android" ,
247
+ target_env = "musl"
248
+ ) ) ] {
245
249
s! {
246
250
pub struct statx {
247
251
pub stx_mask: crate :: __u32,
@@ -1663,7 +1667,11 @@ cfg_if! {
1663
1667
}
1664
1668
1665
1669
cfg_if ! {
1666
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
1670
+ if #[ cfg( any(
1671
+ target_env = "gnu" ,
1672
+ target_os = "android" ,
1673
+ target_env = "musl"
1674
+ ) ) ] {
1667
1675
pub const AT_STATX_SYNC_TYPE : c_int = 0x6000 ;
1668
1676
pub const AT_STATX_SYNC_AS_STAT : c_int = 0x0000 ;
1669
1677
pub const AT_STATX_FORCE_SYNC : c_int = 0x2000 ;
@@ -2177,7 +2185,11 @@ cfg_if! {
2177
2185
2178
2186
// The statx syscall, available on some libcs.
2179
2187
cfg_if ! {
2180
- if #[ cfg( any( target_env = "gnu" , target_os = "android" ) ) ] {
2188
+ if #[ cfg( any(
2189
+ target_env = "gnu" ,
2190
+ target_os = "android" ,
2191
+ target_env = "musl"
2192
+ ) ) ] {
2181
2193
extern "C" {
2182
2194
pub fn statx(
2183
2195
dirfd: c_int,
You can’t perform that action at this time.
0 commit comments