unsafe fn abort() -> ! {
core::intrinsics::abort();
}
+
+ #[cfg(target_env="sgx")]
+ unsafe fn abort() -> ! {
+ extern "C" { pub fn panic_exit() -> !; }
+ panic_exit();
+ }
}
// This... is a bit of an oddity. The tl;dr; is that this is required to link
pub mod personalities {
#[no_mangle]
#[cfg(not(any(
- target_arch = "wasm32",
+ all(
+ target_arch = "wasm32",
+ not(target_os = "emscripten"),
+ ),
all(
target_os = "windows",
target_env = "gnu",