Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use mmap on macOS #302

Merged
merged 11 commits into from
Mar 10, 2020
Prev Previous commit
Next Next commit
Disable mmap on macOS
See rust-lang/rust#45866 for more details
Aaron1011 committed Mar 9, 2020

Verified

This commit was signed with the committer’s verified signature.
Aaron1011 Aaron Hill
commit b585df804fed5b2070669e3110561adc4a403923
4 changes: 3 additions & 1 deletion crates/backtrace-sys/build.rs
Original file line number Diff line number Diff line change
@@ -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");