File tree Expand file tree Collapse file tree 9 files changed +30
-0
lines changed Expand file tree Collapse file tree 9 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ matrix:
41
41
script : ./ci/crossbeam.sh
42
42
install :
43
43
- rustup target add thumbv7m-none-eabi
44
+ - rustup target add thumbv6m-none-eabi
44
45
- rust : nightly
45
46
name : " crossbeam-channel on nightly"
46
47
script : ./ci/crossbeam-channel.sh
@@ -52,6 +53,7 @@ matrix:
52
53
script : ./ci/crossbeam-epoch.sh
53
54
install :
54
55
- rustup target add thumbv7m-none-eabi
56
+ - rustup target add thumbv6m-none-eabi
55
57
addons :
56
58
apt :
57
59
sources :
@@ -71,11 +73,13 @@ matrix:
71
73
script : ./ci/crossbeam-skiplist.sh
72
74
install :
73
75
- rustup target add thumbv7m-none-eabi
76
+ - rustup target add thumbv6m-none-eabi
74
77
- rust : nightly
75
78
name : " crossbeam-utils on nightly"
76
79
script : ./ci/crossbeam-utils.sh
77
80
install :
78
81
- rustup target add thumbv7m-none-eabi
82
+ - rustup target add thumbv6m-none-eabi
79
83
80
84
# Check for duplicate dependencies.
81
85
- rust : nightly
Original file line number Diff line number Diff line change @@ -25,4 +25,6 @@ if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
25
25
cargo check --target thumbv7m-none-eabi --no-default-features
26
26
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc
27
27
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc,nightly
28
+ cargo check --target thumbv6m-none-eabi --no-default-features --features nightly
29
+ cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,nightly
28
30
fi
Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
17
17
cargo check --target thumbv7m-none-eabi --no-default-features
18
18
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc
19
19
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc,nightly
20
+ cargo check --target thumbv6m-none-eabi --no-default-features --features nightly
21
+ cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,nightly
20
22
fi
Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
17
17
cargo check --target thumbv7m-none-eabi --no-default-features
18
18
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc
19
19
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc,nightly
20
+ cargo check --target thumbv6m-none-eabi --no-default-features --features nightly
21
+ cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,nightly
20
22
fi
Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
17
17
cargo check --target thumbv7m-none-eabi --no-default-features
18
18
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc
19
19
cargo check --target thumbv7m-none-eabi --no-default-features --features alloc,nightly
20
+ cargo check --target thumbv6m-none-eabi --no-default-features --features nightly
21
+ cargo check --target thumbv6m-none-eabi --no-default-features --features alloc,nightly
20
22
fi
Original file line number Diff line number Diff line change 58
58
#![ warn( missing_debug_implementations) ]
59
59
#![ cfg_attr( not( feature = "std" ) , no_std) ]
60
60
#![ cfg_attr( feature = "nightly" , feature( const_fn) ) ]
61
+ #![ cfg_attr( feature = "nightly" , feature( cfg_target_has_atomic) ) ]
61
62
62
63
#[ macro_use]
63
64
extern crate cfg_if;
@@ -72,6 +73,10 @@ cfg_if! {
72
73
}
73
74
}
74
75
76
+ #[ cfg_attr(
77
+ feature = "nightly" ,
78
+ cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
79
+ ) ]
75
80
cfg_if ! {
76
81
if #[ cfg( any( feature = "alloc" , feature = "std" ) ) ] {
77
82
extern crate arrayvec;
Original file line number Diff line number Diff line change 3
3
#![ warn( missing_docs) ]
4
4
#![ warn( missing_debug_implementations) ]
5
5
#![ cfg_attr( not( feature = "std" ) , no_std) ]
6
+ #![ cfg_attr( feature = "nightly" , feature( cfg_target_has_atomic) ) ]
6
7
7
8
#[ macro_use]
8
9
extern crate cfg_if;
@@ -17,6 +18,10 @@ cfg_if! {
17
18
}
18
19
}
19
20
21
+ #[ cfg_attr(
22
+ feature = "nightly" ,
23
+ cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
24
+ ) ]
20
25
cfg_if ! {
21
26
if #[ cfg( any( feature = "alloc" , feature = "std" ) ) ] {
22
27
extern crate crossbeam_epoch as epoch;
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ cfg_if! {
44
44
}
45
45
}
46
46
47
+ #[ cfg_attr(
48
+ feature = "nightly" ,
49
+ cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
50
+ ) ]
47
51
pub mod atomic;
48
52
49
53
mod cache_padded;
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ pub use _epoch::crossbeam_epoch as epoch;
68
68
69
69
extern crate crossbeam_utils;
70
70
71
+ #[ cfg_attr(
72
+ feature = "nightly" ,
73
+ cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
74
+ ) ]
71
75
pub use crossbeam_utils:: atomic;
72
76
73
77
/// Miscellaneous utilities.
You can’t perform that action at this time.
0 commit comments