Skip to content

Commit

Permalink
Revert "cpuid-bool: fix SGX support (#67)"
Browse files Browse the repository at this point in the history
This reverts commit 93d93bd.
  • Loading branch information
newpavlov committed Jul 14, 2020
1 parent 93d93bd commit fcc97d3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions cpuid-bool/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion cpuid-bool/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cpuid-bool"
version = "0.1.1"
version = "0.1.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "A lightweight no-std compatible alternative to is_x86_feature_detected"
Expand Down
3 changes: 1 addition & 2 deletions cpuid-bool/src/lib.rs
Expand Up @@ -92,8 +92,7 @@ expand_check_macro! {
#[macro_export]
macro_rules! cpuid_bool {
($($tf:tt),+ $(,)? ) => {{
// CPUID is not available on SGX targets
#[cfg(not(all(not(target_env = "sgx"), $(target_feature=$tf, )*)))]
#[cfg(not(all($(target_feature=$tf, )*)))]
let res = {
#[cfg(target_arch = "x86")]
use core::arch::x86::{__cpuid, __cpuid_count};
Expand Down

0 comments on commit fcc97d3

Please sign in to comment.