Skip to content

Commit ea7dc8e

Browse files
authored
Make sgx functions exist with cfg(miri) (#591)
1 parent ddf1b89 commit ea7dc8e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/backtrace/mod.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl fmt::Debug for Frame {
125125
}
126126
}
127127

128-
#[cfg(all(target_env = "sgx", target_vendor = "fortanix", not(miri)))]
128+
#[cfg(all(target_env = "sgx", target_vendor = "fortanix"))]
129129
mod sgx_image_base {
130130

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

163-
#[cfg(all(
164-
target_env = "sgx",
165-
target_vendor = "fortanix",
166-
not(feature = "std"),
167-
not(miri)
168-
))]
163+
#[cfg(all(target_env = "sgx", target_vendor = "fortanix", not(feature = "std")))]
169164
pub use sgx_image_base::imp::set_image_base;
170165

171166
cfg_if::cfg_if! {

0 commit comments

Comments
 (0)