Skip to content

Commit c87f292

Browse files
authored
slab-alloc/travis.sh: Use --release, not opt-level
1 parent eaa5c74 commit c87f292

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

slab-alloc/travis.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ set -x
1111
set -e
1212

1313
travis-cargo --only nightly build
14-
# Use opt-level=3 because the corruption tests take a long time, and the
14+
# Use --release because the corruption tests take a long time, and the
1515
# optimized build saves more time in test execution than it adds in compilation
1616
# time.
1717
# TODO: Now that we have opt-level = 3 in the test profile in Cargo.toml,
1818
# is this necessary anymore?
19-
RUSTFLAGS='-C opt-level=3' RUST_BACKTRACE=1 travis-cargo --only nightly test
19+
RUST_BACKTRACE=1 travis-cargo --only nightly test --release
2020
# TODO: Once no-std and no-os work, add those features.
2121
for feature in build-ignored-tests use-stdlib-hashmap no-coloring hashmap-no-resize hashmap-no-coalesce; do
22-
RUSTFLAGS='-C opt-level=3' RUST_BACKTRACE=1 travis-cargo --only nightly test -- \
23-
--features "$feature"
22+
RUST_BACKTRACE=1 travis-cargo --only nightly test --release -- --features "$feature"
2423
done

0 commit comments

Comments
 (0)