about summary refs log tree commit diff
path: root/src/libstd/sys/wasm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-04 06:19:40 +0000
committerbors <bors@rust-lang.org>2018-04-04 06:19:40 +0000
commit5758c2dd14fd29caf7c7bb2123eb6b23443b9233 (patch)
tree00119e47d0be6aa30215fd510a06a2fde63dd937 /src/libstd/sys/wasm
parent20338a52401bda3024fd91010a143913a8dc9a6c (diff)
parent7db854b36f9598e44fb4d61428d42d7769233e19 (diff)
downloadrust-5758c2dd14fd29caf7c7bb2123eb6b23443b9233.tar.gz
rust-5758c2dd14fd29caf7c7bb2123eb6b23443b9233.zip
Auto merge of #48575 - ishitatsuyuki:unix-no-thread, r=alexcrichton
rustc_driver: get rid of the extra thread

**Do not rollup**

We can alter the stack size afterwards on Unix.

Having a separate thread causes poor debugging experience when interrupting with signals. I have to get the backtrace of the all thread, as the main thread is waiting to join doing nothing else. This patch allows me to just run `bt` to get the desired backtrace.
Diffstat (limited to 'src/libstd/sys/wasm')
-rw-r--r--src/libstd/sys/wasm/thread.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/wasm/thread.rs b/src/libstd/sys/wasm/thread.rs
index 6a066509b49..7345843b975 100644
--- a/src/libstd/sys/wasm/thread.rs
+++ b/src/libstd/sys/wasm/thread.rs
@@ -46,4 +46,5 @@ pub mod guard {
     pub type Guard = !;
     pub unsafe fn current() -> Option<Guard> { None }
     pub unsafe fn init() -> Option<Guard> { None }
+    pub unsafe fn deinit() {}
 }