Skip to content

Commit

Permalink
Add essential target_vendor check for sgx
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Ding <dingelish@gmail.com>
  • Loading branch information
dingelish committed Mar 8, 2019
1 parent 920ee0f commit 21503ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 21503ef

Please sign in to comment.