]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
fc512014 1# Common Makefile include for Rust `run-make-fulldeps/coverage-* tests. Include this
1b1a35ee
XL
2# file with the line:
3#
fc512014 4# -include ../coverage/coverage_tools.mk
1b1a35ee
XL
5
6-include ../tools.mk
7
1b1a35ee
XL
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#
fc512014
XL
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.