diff options
| author | Yu Ding <dingelish@gmail.com> | 2018-12-31 15:45:42 -0800 |
|---|---|---|
| committer | Yu Ding <dingelish@gmail.com> | 2018-12-31 16:32:56 -0800 |
| commit | d04f5208ba67c90e145438b459f99f2d634026ae (patch) | |
| tree | 89a54526da1c347910242fe2121327e8da4830b5 /src/libstd/lib.rs | |
| parent | 6efaef61899f6551914156f69809aa7d5854399d (diff) | |
| download | rust-d04f5208ba67c90e145438b459f99f2d634026ae.tar.gz rust-d04f5208ba67c90e145438b459f99f2d634026ae.zip | |
Bound sgx target_env with fortanix as target_vendor
Signed-off-by: Yu Ding <dingelish@gmail.com>
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 6ded43dfed1..3b7e8291d38 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -302,9 +302,10 @@ #![feature(non_exhaustive)] #![feature(alloc_layout_extra)] #![feature(maybe_uninit)] -#![cfg_attr(target_env = "sgx", feature(global_asm, range_contains, slice_index_methods, - decl_macro, coerce_unsized, sgx_platform, - min_const_unsafe_fn))] +#![cfg_attr(all(target_vendor = "fortanix", target_env = "sgx"), + feature(global_asm, range_contains, slice_index_methods, + decl_macro, coerce_unsized, sgx_platform, + min_const_unsafe_fn))] #![default_lib_allocator] @@ -347,7 +348,7 @@ extern crate backtrace_sys; // testing gives test-std access to real-std lang items and globals. See #2912 #[cfg(test)] extern crate std as realstd; -#[cfg(target_env = "sgx")] +#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] #[macro_use] #[allow(unused_imports)] // FIXME: without `#[macro_use]`, get error: “cannot // determine resolution for the macro `usercalls_asm`” |
