Prevent EPIPE causing ICEs in rustc and rustdoc

This commit is contained in:
varkor
2018-04-10 23:55:41 +01:00
parent 4b9b70c394
commit 7ab31f6556
4 changed files with 19 additions and 3 deletions

View File

@@ -101,6 +101,7 @@ struct Output {
pub fn main() {
const STACK_SIZE: usize = 32_000_000; // 32MB
rustc_driver::set_sigpipe_handler();
env_logger::init();
let res = std::thread::Builder::new().stack_size(STACK_SIZE).spawn(move || {
syntax::with_globals(move || {