Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9f0fad0

Browse files
committed
Fix thread disable patch
1 parent 49b21f2 commit 9f0fad0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/0015-Remove-usage-of-unsized-locals.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,18 @@ index b2142e7..718bb1c 100644
9494
}
9595

9696
pub fn min_stack() -> usize {
97+
diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs
98+
index f4a1783..362b537 100644
99+
--- a/src/libstd/sys/unix/thread.rs
100+
+++ b/src/libstd/sys/unix/thread.rs
101+
@@ -40,6 +40,8 @@ impl Thread {
102+
// unsafe: see thread::Builder::spawn_unchecked for safety requirements
103+
pub unsafe fn new(stack: usize, p: Box<dyn FnOnce()>)
104+
-> io::Result<Thread> {
105+
+ panic!("Threads are not yet supported, because cranelift doesn't support atomics.");
106+
+
107+
let p = box p;
108+
let mut native: libc::pthread_t = mem::zeroed();
109+
let mut attr: libc::pthread_attr_t = mem::zeroed();
97110
--
98111
2.20.1 (Apple Git-117)

0 commit comments

Comments
 (0)