Skip to content

slab-alloc/travis.sh: Use --release, not RUSTFLAGS='-C opt-level=3' #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions slab-alloc/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ set -x
set -e

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