Skip to content

Commit e1c9ad1

Browse files
committed
Auto merge of #1301 - dingelish:master, r=gnzlbg
Add essential target_vendor check for sgx As discussed in issue [57231](rust-lang/rust#57231), the current `sgx` branch only works for Fortanix's sgx platform. So the `target_vendor` should be checked here. Signed-off-by: Yu Ding <[email protected]>
2 parents 920ee0f + 21503ef commit e1c9ad1

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)