Add essential target_vendor check for sgx

Signed-off-by: Yu Ding <dingelish@gmail.com>
This commit is contained in:
Yu Ding 2019-03-08 10:42:17 -08:00
parent 920ee0f162
commit 21503efac3

View File

@ -109,7 +109,7 @@ cfg_if! {
} else if #[cfg(target_os = "hermit")] {
mod hermit;
pub use hermit::*;
} else if #[cfg(target_env = "sgx")] {
} else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
mod sgx;
pub use sgx::*;
} else {