File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## 0.1.0 (2020-07-14)
9
9
### Fixed
10
- - SGX target support ([ #67 ] )
10
+ - SGX target support ([ #68 ] )
11
11
12
- [ #67 ] : https://github.com/RustCrypto/utils/pull/67
12
+ [ #68 ] : https://github.com/RustCrypto/utils/pull/68
13
13
14
14
## 0.1.0 (2020-06-11)
15
15
- Initial release
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ expand_check_macro! {
93
93
macro_rules! cpuid_bool {
94
94
( $( $tf: tt) ,+ $( , ) ? ) => { {
95
95
// CPUID is not available on SGX targets
96
- #[ cfg( not ( all( not( target_env = "sgx" ) , $( target_feature=$tf, ) * ) ) ) ]
96
+ #[ cfg( all( not( target_env = "sgx" ) , not ( all ( $( target_feature=$tf, ) * ) ) ) ) ]
97
97
let res = {
98
98
#[ cfg( target_arch = "x86" ) ]
99
99
use core:: arch:: x86:: { __cpuid, __cpuid_count} ;
@@ -111,6 +111,8 @@ macro_rules! cpuid_bool {
111
111
} )
112
112
} ;
113
113
114
+ #[ cfg( all( target_env = "sgx" , not( all( $( target_feature=$tf, ) * ) ) ) ) ]
115
+ let res = false ;
114
116
#[ cfg( all( $( target_feature=$tf, ) * ) ) ]
115
117
let res = true ;
116
118
You can’t perform that action at this time.
0 commit comments