Skip to content

Commit

Permalink
Disable mmap on macOS
Browse files Browse the repository at this point in the history
See rust-lang/rust#45866 for more details
  • Loading branch information
Aaron1011 committed Mar 9, 2020
1 parent ab06897 commit b585df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/backtrace-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ fn main() {

// `mmap` does not exist on Windows, so we use
// the less efficient `read`-based code.
if target.contains("windows") {
// Using `mmap` on macOS causes weird isseus - see
// https://github.com/rust-lang/rust/pull/45866
if target.contains("windows") || target.contains("macos") {
build.file("src/libbacktrace/read.c");
} else {
build.file("src/libbacktrace/mmapio.c");
Expand Down

0 comments on commit b585df8

Please sign in to comment.