Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | From bb46a8a729cc4d66ad36db40c17e36a5111f19c3 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 | --- |
| 12 | Cargo.toml | 2 -- |
| 13 | 1 file changed, 2 deletions(-) |
| 14 | |
| 15 | diff --git a/Cargo.toml b/Cargo.toml |
| 16 | index f576534bf3..5ecc17c319 100644 |
| 17 | --- a/Cargo.toml |
| 18 | +++ b/Cargo.toml |
| 19 | @@ -56,13 +56,11 @@ opt-level = 1 |
| 20 | rpath = false |
| 21 | lto = false |
| 22 | debug-assertions = true |
| 23 | -panic = "abort" |
| 24 | |
| 25 | [profile.release] |
| 26 | opt-level = 2 |
| 27 | rpath = false |
| 28 | debug-assertions = false |
| 29 | -panic = "abort" |
| 30 | |
| 31 | # Optimize build dependencies, because bindgen and proc macros / style |
| 32 | # compilation take more to run than to build otherwise. |