@@ -24,20 +24,6 @@ test_target() {
24
24
TARGET=" ${2} "
25
25
NO_STD=" ${3} "
26
26
27
- opt=
28
- if [ " ${TARGET} " = " x86_64-unknown-linux-gnux32" ]; then
29
- # FIXME: x86_64-unknown-linux-gnux32 fail to compile without
30
- # --release
31
- #
32
- # See https://github.com/rust-lang/rust/issues/45417
33
- opt=" --release"
34
- fi
35
- # FIXME: https://github.com/rust-lang/rust/issues/61174
36
- if [ " ${TARGET} " = " sparcv9-sun-solaris" ] ||
37
- [ " ${TARGET} " = " x86_64-sun-solaris" ]; then
38
- return 0
39
- fi
40
-
41
27
# If there is a std component, fetch it:
42
28
if [ " ${NO_STD} " != " 1" ]; then
43
29
# FIXME: rustup often fails to download some artifacts due to network
@@ -55,28 +41,28 @@ test_target() {
55
41
fi
56
42
57
43
# Test that libc builds without any default features (no libstd)
58
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} "
44
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} "
59
45
60
46
# Test that libc builds with default features (e.g. libstd)
61
47
# if the target supports libstd
62
48
if [ " $NO_STD " != " 1" ]; then
63
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --target " ${TARGET} "
49
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --target " ${TARGET} "
64
50
fi
65
51
66
52
# Test that libc builds with the `extra_traits` feature
67
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} " \
53
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} " \
68
54
--features extra_traits
69
55
70
56
# Test the 'const-extern-fn' feature on nightly
71
57
if [ " ${RUST} " = " nightly" ]; then
72
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} " \
58
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} " \
73
59
--features const-extern-fn
74
60
fi
75
61
76
62
77
63
# Also test that it builds with `extra_traits` and default features:
78
64
if [ " $NO_STD " != " 1" ]; then
79
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --target " ${TARGET} " \
65
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --target " ${TARGET} " \
80
66
--features extra_traits
81
67
fi
82
68
}
200
186
201
187
# FIXME: https://github.com/rust-lang/rust/issues/58564
202
188
# sparc-unknown-linux-gnu
203
- # FIXME: https://github.com/rust-lang/rust/issues/62932
204
- # thumbv6m-none-eabi
205
189
RUST_LINUX_NO_CORE_TARGETS=" \
206
190
aarch64-pc-windows-msvc \
207
191
aarch64-unknown-cloudabi \
@@ -234,6 +218,7 @@ riscv32imac-unknown-none-elf \
234
218
riscv32imc-unknown-none-elf \
235
219
sparc64-unknown-netbsd \
236
220
221
+ thumbv6m-none-eabi \
237
222
thumbv7em-none-eabi \
238
223
thumbv7em-none-eabihf \
239
224
thumbv7m-none-eabi \
0 commit comments