We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mmap
1 parent ab06897 commit b585df8Copy full SHA for b585df8
crates/backtrace-sys/build.rs
@@ -36,7 +36,9 @@ fn main() {
36
37
// `mmap` does not exist on Windows, so we use
38
// the less efficient `read`-based code.
39
- if target.contains("windows") {
+ // 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") {
42
build.file("src/libbacktrace/read.c");
43
} else {
44
build.file("src/libbacktrace/mmapio.c");
0 commit comments