mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
fecb335cba
naked functions: emit `.private_extern` on macos fixes https://github.com/rust-lang/rust/issues/148307 Emit `.private_extern` on macos when the naked function uses `Linkage::Internal`. Failing to do so can cause issues with LTO. The documentation on this directive is kind of sparse, but I believe this is at least not incorrect, and does fix the issue. r? @Amanieu cc @bjorn3
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.