about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-03-15 18:01:48 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2021-03-15 18:01:48 +0100
commit53235d2abb881876dd4ec8119c6a31da53d328a4 (patch)
treeecd68f4f8df93acd45ae6eb56cd16ba1ecf03408 /example/std_example.rs
parenta47896d6e4cbba3afac84984418a71e0b41d2d60 (diff)
downloadrust-53235d2abb881876dd4ec8119c6a31da53d328a4.tar.gz
rust-53235d2abb881876dd4ec8119c6a31da53d328a4.zip
Enable thread test in std_example
Turns out libstd doesn't use #[thread_local] on Windows at all
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 221b512e3bd..015bbdfed46 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -16,8 +16,7 @@ fn main() {
     let mut stderr = stderr.lock();
 
     // FIXME support lazy jit when multi threading
-    // FIXME support TLS on windows
-    #[cfg(not(any(lazy_jit, windows)))]
+    #[cfg(not(lazy_jit))]
     std::thread::spawn(move || {
         println!("Hello from another thread!");
     });