@@ -24,14 +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
27
# FIXME: https://github.com/rust-lang/rust/issues/61174
36
28
if [ " ${TARGET} " = " sparcv9-sun-solaris" ] ||
37
29
[ " ${TARGET} " = " x86_64-sun-solaris" ]; then
@@ -55,28 +47,28 @@ test_target() {
55
47
fi
56
48
57
49
# Test that libc builds without any default features (no libstd)
58
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} "
50
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} "
59
51
60
52
# Test that libc builds with default features (e.g. libstd)
61
53
# if the target supports libstd
62
54
if [ " $NO_STD " != " 1" ]; then
63
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --target " ${TARGET} "
55
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --target " ${TARGET} "
64
56
fi
65
57
66
58
# Test that libc builds with the `extra_traits` feature
67
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} " \
59
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} " \
68
60
--features extra_traits
69
61
70
62
# Test the 'const-extern-fn' feature on nightly
71
63
if [ " ${RUST} " = " nightly" ]; then
72
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --no-default-features --target " ${TARGET} " \
64
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --no-default-features --target " ${TARGET} " \
73
65
--features const-extern-fn
74
66
fi
75
67
76
68
77
69
# Also test that it builds with `extra_traits` and default features:
78
70
if [ " $NO_STD " != " 1" ]; then
79
- cargo " +${RUST} " " ${BUILD_CMD} " -vv $opt --target " ${TARGET} " \
71
+ cargo " +${RUST} " " ${BUILD_CMD} " -vv --target " ${TARGET} " \
80
72
--features extra_traits
81
73
fi
82
74
}
0 commit comments