mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
433e106dd2
Pass -pg to linker when using -Zinstrument-mcount This selects a slightly different crt on gnu targets which enables the profiler within glibc. This makes using gprof a little easier with Rust binaries. Otherwise, rustc must be passed `-Clink-args=-pg` to ensure the correct startup code is linked.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.