X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibstd%2Fsys%2Fsgx%2Fthread.rs;h=a3637723ba1bd05611daf419248562941587fce7;hb=f229422cc1a0d46d15a7f953f59d8e057ae03865;hp=13569062ac184cfd99675c800c0c0bb9d33de149;hpb=2c8bbf50db0ef90a33f986ba8fc2e1fe129197ff;p=rust.git diff --git a/src/libstd/sys/sgx/thread.rs b/src/libstd/sys/sgx/thread.rs index 13569062ac1..a3637723ba1 100644 --- a/src/libstd/sys/sgx/thread.rs +++ b/src/libstd/sys/sgx/thread.rs @@ -1,3 +1,4 @@ +#![cfg_attr(test, allow(dead_code))] // why is this necessary? use crate::boxed::FnBox; use crate::ffi::CStr; use crate::io; @@ -33,7 +34,11 @@ pub(super) fn run(self) { } } + #[cfg_attr(test, linkage = "available_externally")] + #[export_name = "_ZN16__rust_internals3std3sys3sgx6thread15TASK_QUEUE_INITE"] static TASK_QUEUE_INIT: Once = Once::new(); + #[cfg_attr(test, linkage = "available_externally")] + #[export_name = "_ZN16__rust_internals3std3sys3sgx6thread10TASK_QUEUEE"] static mut TASK_QUEUE: Option>> = None; pub(super) fn lock() -> MutexGuard<'static, Vec> {