rust/patches/0011-Workaround-for-libstd-crash.patch
2019-02-11 19:40:07 +01:00

25 lines
822 B
Diff

From 2bc2ef06e118c6fba0626c0e9bf24fed873405b2 Mon Sep 17 00:00:00 2001
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Sat, 29 Dec 2018 12:37:34 +0100
Subject: [PATCH] Workaround for libstd crash
I think this is related to the use of TLS inside those functions
---
src/libstd/rt.rs | 2 +-
1 file changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libstd/rt.rs b/src/libstd/rt.rs
index 5ddb66b..6a0d0b5 100644
--- a/src/libstd/rt.rs
+++ b/src/libstd/rt.rs
@@ -51,7 +51,7 @@ fn lang_start_internal(main: &(dyn Fn() -> i32 + Sync + ::panic::RefUnwindSafe),
#[cfg(not(feature = "backtrace"))]
let exit_code = panic::catch_unwind(move || main());
- sys_common::cleanup();
+ //sys_common::cleanup();
exit_code.unwrap_or(101) as isize
}
}
--
2.17.2 (Apple Git-113)