Skip to content

Commit

Permalink
Merge pull request #3398 from benesch/macos-backtraces
Browse files Browse the repository at this point in the history
materialized: fix backtraces on macOS
  • Loading branch information
benesch authored Jun 18, 2020
2 parents a1e6c9b + 51992ba commit 6aafd50
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
33 changes: 16 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ members = [
"test/test-util",
]

[profile.dev.package]
# Compile the backtrace crate and its dependencies with all optimizations, even
# in dev builds, since otherwise backtraces can take 20s+ to symbolize. With
# optimizations enabled, symbolizing a backtrace takes less than 1s.
addr2line = { opt-level = 3 }
backtrace = { opt-level = 3 }
gimli = { opt-level = 3 }
miniz_oxide = { opt-level = 3 }
object = { opt-level = 3 }

[profile.release]
# Emit only the line info tables, not full debug info, in release builds, to
# substantially reduce the size of the debug info. Line info tables are enough
Expand Down
2 changes: 1 addition & 1 deletion src/materialized/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "proprietary"

[dependencies]
async-trait = "0.1.35"
backtrace = { version = "0.3.48", default-features = false, features = ["coresymbolication", "libbacktrace"] }
backtrace = { version = "0.3.49" }
comm = { path = "../comm" }
compile-time-run = "0.2.8"
coord = { path = "../coord" }
Expand Down

0 comments on commit 6aafd50

Please sign in to comment.