Skip to content

Commit b585df8

Browse files
committed
Disable mmap on macOS
See rust-lang/rust#45866 for more details
1 parent ab06897 commit b585df8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/backtrace-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ fn main() {
3636

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

0 commit comments

Comments
 (0)