Skip to content

Commit 6aafd50

Browse files
authored
Merge pull request #3398 from benesch/macos-backtraces
materialized: fix backtraces on macOS
2 parents a1e6c9b + 51992ba commit 6aafd50

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

Cargo.lock

Lines changed: 16 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ members = [
3434
"test/test-util",
3535
]
3636

37+
[profile.dev.package]
38+
# Compile the backtrace crate and its dependencies with all optimizations, even
39+
# in dev builds, since otherwise backtraces can take 20s+ to symbolize. With
40+
# optimizations enabled, symbolizing a backtrace takes less than 1s.
41+
addr2line = { opt-level = 3 }
42+
backtrace = { opt-level = 3 }
43+
gimli = { opt-level = 3 }
44+
miniz_oxide = { opt-level = 3 }
45+
object = { opt-level = 3 }
46+
3747
[profile.release]
3848
# Emit only the line info tables, not full debug info, in release builds, to
3949
# substantially reduce the size of the debug info. Line info tables are enough

src/materialized/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "proprietary"
1111

1212
[dependencies]
1313
async-trait = "0.1.35"
14-
backtrace = { version = "0.3.48", default-features = false, features = ["coresymbolication", "libbacktrace"] }
14+
backtrace = { version = "0.3.49" }
1515
comm = { path = "../comm" }
1616
compile-time-run = "0.2.8"
1717
coord = { path = "../coord" }

0 commit comments

Comments
 (0)