Skip to content

Commit

Permalink
Use gimli on Linux, coresym on macOS
Browse files Browse the repository at this point in the history
Fixes source printing after switching the working dir to something != the root source directory by ditching libbacktrace.

Resolves #2
  • Loading branch information
athre0z committed Jun 27, 2019
1 parent f817abc commit f4603f3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ keywords = [
]

[dependencies]
backtrace = "0.3"
term = "0.5"
atty = "0.2"

[target.'cfg(target_os="linux")'.dependencies]
backtrace = { version = "0.3", features = ["gimli-symbolize"] }

[target.'cfg(target_os="macos")'.dependencies]
backtrace = { version = "0.3", features = ["coresymbolication"] }

[target.'cfg(not(any(target_os="macos", target_os="linux")))'.dependencies]
backtrace = { version = "0.3" }

0 comments on commit f4603f3

Please sign in to comment.