Skip to content

Commit

Permalink
.S in sgx-api-lite not work on Intel-based macOS as well, so disable …
Browse files Browse the repository at this point in the history
…it on macOS
  • Loading branch information
jasl committed Oct 14, 2022
1 parent 9d9f3d2 commit a8e869e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sgx-api-lite/src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3824,10 +3824,10 @@ extern "C" {
pub fn sgx_getkey(keyrequest: *mut sgx_key_request_t, key: *mut sgx_key_128bit_t) -> i64;
}

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", not(target_os = "macos")))]
core::arch::global_asm!(include_str!("enclave_api.S"));

#[cfg(not(target_arch = "x86_64"))]
#[cfg(any(not(target_arch = "x86_64"), target_os = "macos"))]
const _: () = {
#[no_mangle]
extern "C" fn sgx_getkey(
Expand Down

0 comments on commit a8e869e

Please sign in to comment.