Skip to content

Commit 04e2930

Browse files
committed
ci: remove RUSTFLAGS, enable unstable
This removes our compile time SIMD flags and replaces them with the `unstable` feature, which will cause CI to use whatever CPU features are available. Ideally, we would test each important CPU feature combinations, but I'd like to avoid doing that in one CI job and instead split them out into separate CI jobs to keep CI times low. That requires more work.
1 parent 361459c commit 04e2930

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

ci/after_success.sh

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if [ "$TRAVIS_RUST_VERSION" != "nightly" ] || [ "$TRAVIS_PULL_REQUEST" != "false
99
exit 0
1010
fi
1111

12-
export RUSTFLAGS="-C target-feature=+ssse3"
1312
env
1413

1514
# Install kcov.

ci/run-kcov

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ while true; do
2828
esac
2929
done
3030

31-
cargo test --no-run --verbose --jobs 4
31+
cargo test --no-run --verbose --jobs 4 --features unstable
3232
for t in ${tests[@]}; do
3333
kcov \
3434
--verify \

ci/script.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
set -ex
66

7-
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
8-
# We set this once so that all invocations share this setting. This should
9-
# help with build times by avoiding excessive re-compiles.
10-
export RUSTFLAGS="-C target-feature=+ssse3"
11-
fi
12-
137
# Builds the regex crate and runs tests.
148
cargo build --verbose
159
cargo doc --verbose
@@ -25,7 +19,7 @@ fi
2519

2620
# Run tests. If we have nightly, then enable our nightly features.
2721
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
28-
cargo test --verbose --features 'simd-accel pattern'
22+
cargo test --verbose --features unstable
2923
else
3024
cargo test --verbose
3125
fi

0 commit comments

Comments
 (0)