We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fbd636 commit b90091eCopy full SHA for b90091e
coresimd/x86/cpuid.rs
@@ -80,11 +80,15 @@ pub unsafe fn __cpuid(leaf: u32) -> CpuidResult {
80
/// Does the host support the `cpuid` instruction?
81
#[inline]
82
pub fn has_cpuid() -> bool {
83
- #[cfg(target_arch = "x86_64")]
+ #[cfg(target_env = "sgx")]
84
+ {
85
+ false
86
+ }
87
+ #[cfg(all(not(target_env = "sgx"), target_arch = "x86_64"))]
88
{
89
true
90
}
- #[cfg(target_arch = "x86")]
91
+ #[cfg(all(not(target_env = "sgx"), target_arch = "x86"))]
92
93
// Optimization for i586 and i686 Rust targets which SSE enabled
94
// and support cpuid:
0 commit comments