Skip to content

Commit 21503ef

Browse files
committed
Add essential target_vendor check for sgx
Signed-off-by: Yu Ding <dingelish@gmail.com>
1 parent 920ee0f commit 21503ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ cfg_if! {
109109
} else if #[cfg(target_os = "hermit")] {
110110
mod hermit;
111111
pub use hermit::*;
112-
} else if #[cfg(target_env = "sgx")] {
112+
} else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
113113
mod sgx;
114114
pub use sgx::*;
115115
} else {

0 commit comments

Comments
 (0)