diff options
| author | bors <bors@rust-lang.org> | 2016-11-24 19:03:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-24 19:03:07 -0600 |
| commit | 2e7176f98bf64c3644408cec40c4b2541d96148e (patch) | |
| tree | c49aad0c7e5642ac3fee0809b3586c2db7b484a2 /src/libstd | |
| parent | d9bdc636da951314064d8c3442bc5842a13e5b79 (diff) | |
| parent | ba07a1b58d72fb460734014f5d314a206dad7359 (diff) | |
| download | rust-2e7176f98bf64c3644408cec40c4b2541d96148e.tar.gz rust-2e7176f98bf64c3644408cec40c4b2541d96148e.zip | |
Auto merge of #37974 - japaric:abort, r=alexcrichton
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 r? @alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/Cargo.toml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/Cargo.toml b/src/libstd/Cargo.toml index 21e6acc37f3..b9f52e20fdd 100644 --- a/src/libstd/Cargo.toml +++ b/src/libstd/Cargo.toml @@ -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"] |
