From 9fa742437767c380a63781ab5667470d794f7fa3 Mon Sep 17 00:00:00 2001 From: Joshua Liebow-Feeser Date: Fri, 23 Mar 2018 06:52:52 -0700 Subject: [PATCH] slab-alloc/travis.sh: Use --release, not opt-level --- slab-alloc/travis.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slab-alloc/travis.sh b/slab-alloc/travis.sh index 6ea3011..c672d55 100755 --- a/slab-alloc/travis.sh +++ b/slab-alloc/travis.sh @@ -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