about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-05-25 21:43:22 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-03-05 21:32:49 +0100
commit1122f42e2872a4bb65adeb990fb73cc555f5c3cf (patch)
treed3bdf04621c949445f036c2f3e35aa2205675c99 /example/std_example.rs
parentc825bc8e61c9a30adebacbe87d048324a5e1063a (diff)
downloadrust-1122f42e2872a4bb65adeb990fb73cc555f5c3cf.tar.gz
rust-1122f42e2872a4bb65adeb990fb73cc555f5c3cf.zip
Support cross-compiling to Windows using MinGW
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 015bbdfed46..221b512e3bd 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -16,7 +16,8 @@ fn main() {
     let mut stderr = stderr.lock();
 
     // FIXME support lazy jit when multi threading
-    #[cfg(not(lazy_jit))]
+    // FIXME support TLS on windows
+    #[cfg(not(any(lazy_jit, windows)))]
     std::thread::spawn(move || {
         println!("Hello from another thread!");
     });