Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

enable lto, panic = "abort" in release build #10356

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ name = "parity"

[profile.release]
debug = false
lto = true
panic = "abort"

[workspace]
# This should only list projects that are not
Expand Down
2 changes: 1 addition & 1 deletion accounts/ethkey/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl DisplayMode {
}

fn main() {
panic_hook::set_abort();
panic_hook::set();
env_logger::try_init().expect("Logger initialized only once.");

match execute(env::args()) {
Expand Down
2 changes: 1 addition & 1 deletion accounts/ethstore/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl fmt::Display for Error {
}

fn main() {
panic_hook::set_abort();
panic_hook::set();
if env::var("RUST_LOG").is_err() {
env::set_var("RUST_LOG", "warn")
}
Expand Down
2 changes: 1 addition & 1 deletion ethcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ keccak-hasher = { path = "../util/keccak-hasher" }
kvdb = "0.1"
kvdb-memorydb = "0.1"
kvdb-rocksdb = { version = "0.1.3", optional = true }
lazy_static = "1.0"
lazy_static = "1.2.0"
len-caching-lock = { path = "../util/len-caching-lock" }
log = "0.4"
lru-cache = "0.1"
Expand Down
Loading