File tree Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 8
8
- env : TARGET=i586-unknown-linux-gnu
9
9
- env : TARGET=i686-unknown-linux-gnu
10
10
- env : TARGET=x86_64-unknown-linux-gnu NO_ADD=1
11
- - env : TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1 STDSIMD_TEST_EVERYTHING=1
11
+ - env : TARGET=x86_64-unknown-linux-gnu-emulated NO_ADD=1 STDSIMD_TEST_EVERYTHING=1 FEATURES="intel"
12
12
- env : TARGET=arm-unknown-linux-gnueabihf
13
13
- env : TARGET=armv7-unknown-linux-gnueabihf
14
14
- env : TARGET=aarch64-unknown-linux-gnu
@@ -33,7 +33,7 @@ install:
33
33
34
34
script :
35
35
- cargo generate-lockfile
36
- - ci/run-docker.sh $TARGET
36
+ - ci/run-docker.sh $TARGET $FEATURES
37
37
38
38
notifications :
39
39
email :
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ cupid = "0.3"
32
32
33
33
[features ]
34
34
strict = []
35
+ intel = []
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ run() {
16
16
--env CARGO_HOME=/cargo \
17
17
--volume ` rustc --print sysroot` :/rust:ro \
18
18
--env TARGET=$target \
19
+ --env FEATURES=$2 \
19
20
--env STDSIMD_TEST_EVERYTHING \
20
21
--volume ` pwd` :/checkout:ro \
21
22
--volume ` pwd` /target:/checkout/target \
@@ -31,5 +32,5 @@ if [ -z "$1" ]; then
31
32
run $d
32
33
done
33
34
else
34
- run $1
35
+ run $1 $2
35
36
fi
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ case ${TARGET} in
15
15
;;
16
16
esac
17
17
18
+ FEATURES=" strict,$FEATURES "
19
+
18
20
echo " RUSTFLAGS=${RUSTFLAGS} "
21
+ echo " FEATURES=${FEATURES} "
19
22
20
- cargo test --target $TARGET --features " strict "
21
- cargo test --release --target $TARGET --features " strict "
23
+ cargo test --target $TARGET --features $FEATURES
24
+ cargo test --release --target $TARGET --features $FEATURES
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ pub use self::avx2::*;
16
16
pub use self :: abm:: * ;
17
17
pub use self :: bmi:: * ;
18
18
pub use self :: bmi2:: * ;
19
+
20
+ #[ cfg( not( feature = "intel" ) ) ]
19
21
pub use self :: tbm:: * ;
20
22
21
23
pub use self :: runtime:: { __unstable_detect_feature, __Feature} ;
@@ -48,4 +50,6 @@ mod avx2;
48
50
mod abm;
49
51
mod bmi;
50
52
mod bmi2;
53
+
54
+ #[ cfg( not( feature = "intel" ) ) ]
51
55
mod tbm;
You can’t perform that action at this time.
0 commit comments