Skip to content

Commit e2905a8

Browse files
committed
Remove optimization workaround
1 parent 829e136 commit e2905a8

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

ci/build.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ test_target() {
2424
TARGET="${2}"
2525
NO_STD="${3}"
2626

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
3527
# FIXME: https://github.com/rust-lang/rust/issues/61174
3628
if [ "${TARGET}" = "sparcv9-sun-solaris" ] ||
3729
[ "${TARGET}" = "x86_64-sun-solaris" ]; then
@@ -55,28 +47,28 @@ test_target() {
5547
fi
5648

5749
# 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}"
5951

6052
# Test that libc builds with default features (e.g. libstd)
6153
# if the target supports libstd
6254
if [ "$NO_STD" != "1" ]; then
63-
cargo "+${RUST}" "${BUILD_CMD}" -vv $opt --target "${TARGET}"
55+
cargo "+${RUST}" "${BUILD_CMD}" -vv --target "${TARGET}"
6456
fi
6557

6658
# 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}" \
6860
--features extra_traits
6961

7062
# Test the 'const-extern-fn' feature on nightly
7163
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}" \
7365
--features const-extern-fn
7466
fi
7567

7668

7769
# Also test that it builds with `extra_traits` and default features:
7870
if [ "$NO_STD" != "1" ]; then
79-
cargo "+${RUST}" "${BUILD_CMD}" -vv $opt --target "${TARGET}" \
71+
cargo "+${RUST}" "${BUILD_CMD}" -vv --target "${TARGET}" \
8072
--features extra_traits
8173
fi
8274
}

0 commit comments

Comments
 (0)