std: make compilation of libpanic_unwind optional via a Cargo feature
with this feature disabled, you can (Cargo) compile std with "panic=abort" rustbuild will build std with this feature enabled, to maintain the status quo fixes #37252
This commit is contained in:
parent
127a83df66
commit
ba07a1b58d
3 changed files with 7 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ crate-type = ["dylib", "rlib"]
|
|||
alloc = { path = "../liballoc" }
|
||||
alloc_jemalloc = { path = "../liballoc_jemalloc", optional = true }
|
||||
alloc_system = { path = "../liballoc_system" }
|
||||
panic_unwind = { path = "../libpanic_unwind" }
|
||||
panic_unwind = { path = "../libpanic_unwind", optional = true }
|
||||
panic_abort = { path = "../libpanic_abort" }
|
||||
collections = { path = "../libcollections" }
|
||||
core = { path = "../libcore" }
|
||||
|
|
@ -29,5 +29,6 @@ gcc = "0.3.27"
|
|||
|
||||
[features]
|
||||
backtrace = []
|
||||
jemalloc = ["alloc_jemalloc"]
|
||||
debug-jemalloc = ["alloc_jemalloc/debug"]
|
||||
jemalloc = ["alloc_jemalloc"]
|
||||
panic-unwind = ["panic_unwind"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue