Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | From 9e37248870b2b955293754933c789ca00bca06ef Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Fri, 1 Oct 2021 13:00:24 +0200 |
| 4 | Subject: [PATCH] Cargo.toml: do not abort on panic |
| 5 | |
| 6 | OE's rust is configured to unwind, and this setting clashes with it/ |
| 7 | |
| 8 | Upstream-Status: Inappropriate [oe-core specific] |
| 9 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 10 | --- |
| 11 | Cargo.toml | 3 +-- |
| 12 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 13 | |
| 14 | --- a/Cargo.toml |
| 15 | +++ b/Cargo.toml |
| 16 | @@ -51,13 +51,11 @@ opt-level = 1 |
| 17 | rpath = false |
| 18 | lto = false |
| 19 | debug-assertions = true |
| 20 | -panic = "abort" |
| 21 | |
| 22 | [profile.release] |
| 23 | opt-level = 2 |
| 24 | rpath = false |
| 25 | debug-assertions = false |
| 26 | -panic = "abort" |
| 27 | |
| 28 | # Optimize build dependencies, because bindgen and proc macros / style |
| 29 | # compilation take more to run than to build otherwise. |