Skip to content

Commit fcc97d3

Browse files
authored
Revert "cpuid-bool: fix SGX support (#67)"
This reverts commit 93d93bd.
1 parent 93d93bd commit fcc97d3

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cpuid-bool/CHANGELOG.md

-15
This file was deleted.

cpuid-bool/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cpuid-bool"
3-
version = "0.1.1"
3+
version = "0.1.0"
44
authors = ["RustCrypto Developers"]
55
license = "MIT OR Apache-2.0"
66
description = "A lightweight no-std compatible alternative to is_x86_feature_detected"

cpuid-bool/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ expand_check_macro! {
9292
#[macro_export]
9393
macro_rules! cpuid_bool {
9494
($($tf:tt),+ $(,)? ) => {{
95-
// CPUID is not available on SGX targets
96-
#[cfg(not(all(not(target_env = "sgx"), $(target_feature=$tf, )*)))]
95+
#[cfg(not(all($(target_feature=$tf, )*)))]
9796
let res = {
9897
#[cfg(target_arch = "x86")]
9998
use core::arch::x86::{__cpuid, __cpuid_count};

0 commit comments

Comments
 (0)