Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ fn link_libraries(link_bundled_deps: bool) {
println!("cargo:rustc-link-lib=dylib=c++");
} else {
println!("cargo:rustc-link-lib=dylib=stdc++");
// The perf build's buffer manager does 16-byte atomic operations,
// which GCC lowers to libatomic calls (`__atomic_compare_exchange`).
// The linker passes --as-needed, so builds that don't use it
// (compat) get no extra runtime dependency.
println!("cargo:rustc-link-lib=dylib=atomic");
}

link_openssl();
Expand Down
Loading