Workaround rust issue 50007

This commit is contained in:
Gary Guo 2021-08-26 05:20:25 +01:00
parent f76376c101
commit 5e4c957df4
2 changed files with 6 additions and 1 deletions

View File

@ -18,5 +18,10 @@ fde-phdr = ["libc"]
fde-registry = ["alloc"]
default = ["fde-phdr"]
[profile.dev]
# Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
lto = true
[profile.release]
lto = true
debug = true

View File

@ -12,7 +12,7 @@ use core::alloc::{GlobalAlloc, Layout};
use core::panic::PanicInfo;
use core::{cmp, mem, ptr};
use libc::c_int;
use unwind::*;
pub use unwind::*;
pub struct System;