]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/os.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / sys / sgx / os.rs
index 2725e66ce5de4001d43489e1e517b8264e0118fd..0bb7b897058db08878ca2e28df709d6384deb398 100644 (file)
@@ -73,7 +73,11 @@ pub fn current_exe() -> io::Result<PathBuf> {
     unsupported()
 }
 
+#[cfg_attr(test, linkage = "available_externally")]
+#[export_name = "_ZN16__rust_internals3std3sys3sgx2os3ENVE"]
 static ENV: AtomicUsize = AtomicUsize::new(0);
+#[cfg_attr(test, linkage = "available_externally")]
+#[export_name = "_ZN16__rust_internals3std3sys3sgx2os8ENV_INITE"]
 static ENV_INIT: Once = Once::new();
 type EnvStore = Mutex<HashMap<OsString, OsString>>;