Skip to content

Commit fc2d8c7

Browse files
committed
fixup
1 parent cc1fa25 commit fc2d8c7

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ matrix:
88
- env: TARGET=i586-unknown-linux-gnu
99
- env: TARGET=i686-unknown-linux-gnu
1010
- env: TARGET=x86_64-unknown-linux-gnu NO_ADD=1
11-
- env: TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1
11+
- env: TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1 STDSIMD_TEST_EVERYTHING=1 FEATURES="intel"
1212
- env: TARGET=arm-unknown-linux-gnueabihf
1313
- env: TARGET=armv7-unknown-linux-gnueabihf
1414
- env: TARGET=aarch64-unknown-linux-gnu
@@ -33,7 +33,7 @@ install:
3333

3434
script:
3535
- cargo generate-lockfile
36-
- ci/run-docker.sh $TARGET
36+
- ci/run-docker.sh $TARGET $FEATURES
3737

3838
notifications:
3939
email:

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ cupid = "0.3"
3232

3333
[features]
3434
strict = []
35+
intel = []

ci/run-docker.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ run() {
1616
--env CARGO_HOME=/cargo \
1717
--volume `rustc --print sysroot`:/rust:ro \
1818
--env TARGET=$target \
19+
--env FEATURES=$2 \
1920
--env STDSIMD_TEST_EVERYTHING \
2021
--volume `pwd`:/checkout:ro \
2122
--volume `pwd`/target:/checkout/target \
@@ -28,8 +29,8 @@ run() {
2829

2930
if [ -z "$1" ]; then
3031
for d in `ls ci/docker/`; do
31-
run $d
32+
run $d "strict"
3233
done
3334
else
34-
run $1
35+
run $1 $2
3536
fi

ci/run.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ esac
1717

1818
echo "RUSTFLAGS=${RUSTFLAGS}"
1919

20-
cargo test --target $TARGET --features "strict" --verbose -- --nocapture
21-
cargo test --release --target $TARGET --features "strict" --verbose -- --nocapture
20+
FEATURES="strict,$FEATURES"
21+
22+
cargo test --target $TARGET --features $FEATURES --verbose -- --nocapture
23+
cargo test --release --target $TARGET --features $FEATURES --verbose -- --nocapture

src/x86/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ pub use self::avx2::*;
1212
pub use self::abm::*;
1313
pub use self::bmi::*;
1414
pub use self::bmi2::*;
15+
16+
#[cfg(not(feature = "intel"))]
1517
pub use self::tbm::*;
1618

1719
pub use self::runtime::{__unstable_detect_feature, __Feature};
@@ -40,4 +42,5 @@ mod avx2;
4042
mod abm;
4143
mod bmi;
4244
mod bmi2;
45+
#[cfg(not(feature = "intel"))]
4346
mod tbm;

0 commit comments

Comments
 (0)