Skip to content

Commit

Permalink
Make sgx functions exist with cfg(miri) (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin authored Mar 14, 2024
1 parent ddf1b89 commit ea7dc8e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/backtrace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl fmt::Debug for Frame {
}
}

#[cfg(all(target_env = "sgx", target_vendor = "fortanix", not(miri)))]
#[cfg(all(target_env = "sgx", target_vendor = "fortanix"))]
mod sgx_image_base {

#[cfg(not(feature = "std"))]
Expand Down Expand Up @@ -160,12 +160,7 @@ mod sgx_image_base {
pub(crate) use imp::get_image_base;
}

#[cfg(all(
target_env = "sgx",
target_vendor = "fortanix",
not(feature = "std"),
not(miri)
))]
#[cfg(all(target_env = "sgx", target_vendor = "fortanix", not(feature = "std")))]
pub use sgx_image_base::imp::set_image_base;

cfg_if::cfg_if! {
Expand Down

0 comments on commit ea7dc8e

Please sign in to comment.