File tree 9 files changed +14
-14
lines changed
aarch64-unknown-linux-musl
9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,15 @@ fn main() {
59
59
) ;
60
60
}
61
61
62
- // The ABI of libc used by libstd is backward compatible with FreeBSD 10 .
62
+ // The ABI of libc used by std is backward compatible with FreeBSD 12 .
63
63
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
64
64
//
65
65
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
66
66
// running tests to ensure that the ABI is correct.
67
67
match which_freebsd ( ) {
68
- Some ( 10 ) if libc_ci || rustc_dep_of_std => set_cfg ( "freebsd10" ) ,
68
+ Some ( 10 ) if libc_ci => set_cfg ( "freebsd10" ) ,
69
69
Some ( 11 ) if libc_ci => set_cfg ( "freebsd11" ) ,
70
- Some ( 12 ) if libc_ci => set_cfg ( "freebsd12" ) ,
70
+ Some ( 12 ) if libc_ci || rustc_dep_of_std => set_cfg ( "freebsd12" ) ,
71
71
Some ( 13 ) if libc_ci => set_cfg ( "freebsd13" ) ,
72
72
Some ( 14 ) if libc_ci => set_cfg ( "freebsd14" ) ,
73
73
Some ( _) | None => set_cfg ( "freebsd11" ) ,
Original file line number Diff line number Diff line change @@ -39,16 +39,16 @@ test_target() {
39
39
done
40
40
fi
41
41
42
- # Test that libc builds without any default features (no libstd )
42
+ # Test that libc builds without any default features (no std )
43
43
if [ " ${NO_STD} " != " 1" ]; then
44
44
cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} "
45
45
else
46
46
# FIXME: With `build-std` feature, `compiler_builtins` emits a lof of lint warnings.
47
47
RUSTFLAGS=" -A improper_ctypes_definitions" cargo " +${RUST} " " ${BUILD_CMD} " \
48
48
-Z build-std=core,alloc -vv --no-default-features --target " ${TARGET} "
49
49
fi
50
- # Test that libc builds with default features (e.g. libstd )
51
- # if the target supports libstd
50
+ # Test that libc builds with default features (e.g. std )
51
+ # if the target supports std
52
52
if [ " $NO_STD " != " 1" ]; then
53
53
cargo " +${RUST} " " ${BUILD_CMD} " -vv --target " ${TARGET} "
54
54
else
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7
7
COPY install-musl.sh /
8
8
RUN sh /install-musl.sh aarch64
9
9
10
- # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd ?
10
+ # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in std ?
11
11
ENV PATH=$PATH:/musl-aarch64/bin:/rust/bin \
12
12
CC_aarch64_unknown_linux_musl=musl-gcc \
13
13
RUSTFLAGS='-Clink-args=-lgcc -L /musl-aarch64/lib' \
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
9
9
COPY install-musl.sh /
10
10
RUN sh /install-musl.sh s390x
11
11
12
- # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd ?
12
+ # FIXME: shouldn't need the `-lgcc` here, shouldn't that be in std ?
13
13
ENV CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER=s390x-linux-gnu-gcc \
14
14
CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_RUNNER="qemu-s390x -L /musl-s390x" \
15
15
CC_s390x_unknown_linux_gnu=musl-gcc \
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ fn test_apple(target: &str) {
349
349
// close calls the close_nocancel system call
350
350
"close" => true ,
351
351
352
- // FIXME: libstd removed libresolv support: https://github.com/rust-lang/rust/pull/102766
352
+ // FIXME: std removed libresolv support: https://github.com/rust-lang/rust/pull/102766
353
353
"res_init" => true ,
354
354
355
355
// FIXME: remove once the target in CI is updated
Original file line number Diff line number Diff line change @@ -865,7 +865,7 @@ pub const LC_NUMERIC: ::c_int = 4;
865
865
pub const LC_TIME : :: c_int = 5 ;
866
866
pub const LC_MESSAGES : :: c_int = 6 ;
867
867
868
- // FIXME: Haiku does not have MAP_FILE, but libstd /os.rs requires it
868
+ // FIXME: Haiku does not have MAP_FILE, but library/std /os.rs requires it
869
869
pub const MAP_FILE : :: c_int = 0x00 ;
870
870
pub const MAP_SHARED : :: c_int = 0x01 ;
871
871
pub const MAP_PRIVATE : :: c_int = 0x02 ;
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ cfg_if! {
321
321
if #[ cfg( any( target_os = "l4re" , target_os = "espidf" ) ) ] {
322
322
// required libraries for L4Re and the ESP-IDF framework are linked externally, ATM
323
323
} else if #[ cfg( feature = "std" ) ] {
324
- // cargo build, don't pull in anything extra as the libstd dep
324
+ // cargo build, don't pull in anything extra as the std dep
325
325
// already pulls in all libs.
326
326
} else if #[ cfg( all( target_os = "linux" ,
327
327
any( target_env = "gnu" , target_env = "uclibc" ) ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub type nfds_t = ::c_ulong;
28
28
pub type nlink_t = :: c_ulong ;
29
29
pub type off_t = :: c_longlong ;
30
30
pub type pthread_t = * mut :: c_void ;
31
- // Must be usize due to libstd /sys_common/thread_local.rs,
31
+ // Must be usize due to library/std /sys_common/thread_local.rs,
32
32
// should technically be *mut ::c_void
33
33
pub type pthread_key_t = usize ;
34
34
pub type rlim_t = :: c_ulonglong ;
Original file line number Diff line number Diff line change @@ -582,8 +582,8 @@ pub const EAI_SERVICE: ::c_int = 9;
582
582
pub const EAI_SOCKTYPE : :: c_int = 10 ;
583
583
pub const EAI_SYSTEM : :: c_int = 11 ;
584
584
585
- // This is not defined in vxWorks, but we have to define it here
586
- // to make the building pass for getrandom and libstd, FIXME
585
+ // FIXME: This is not defined in vxWorks, but we have to define it here
586
+ // to make the building pass for getrandom and std
587
587
pub const RTLD_DEFAULT : * mut :: c_void = 0i64 as * mut :: c_void ;
588
588
589
589
//Clock Lib Stuff
You can’t perform that action at this time.
0 commit comments