]> git.proxmox.com Git - rustc.git/blob - src/test/run-make-fulldeps/coverage/coverage_tools.mk
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / run-make-fulldeps / coverage / coverage_tools.mk
1 # Common Makefile include for Rust `run-make-fulldeps/coverage-* tests. Include this
2 # file with the line:
3 #
4 # -include ../coverage/coverage_tools.mk
5
6 -include ../tools.mk
7
8 # ISSUE(76038): When targeting MSVC, Rust binaries built with both `-Z instrument-coverage` and
9 # `-C link-dead-code` typically crash (with a seg-fault) or at best generate an empty `*.profraw`
10 # file, required for coverage reports.
11 #
12 # Enabling `-C link-dead-code` is not necessary when compiling with `-Z instrument-coverage`,
13 # due to improvements in the coverage map generation, to add unreachable functions known to Rust.
14 # Therefore, `-C link-dead-code` is no longer automatically enabled.