aboutsummaryrefslogtreecommitdiff
path: root/build/config/coverage/BUILD.gn
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:07:01 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:07:01 +0000
commitd3eb409207e115913ca857370ec3f57b0176bcc0 (patch)
tree16765b6280082dc0b023adec56c46e6ebb418999 /build/config/coverage/BUILD.gn
parent613d0296f2046c72066f26bb60fc8fda2addd45f (diff)
parent5d6766f0e0e4382d8cd4d0376232d344e40970b6 (diff)
downloadangle-d3eb409207e115913ca857370ec3f57b0176bcc0.tar.gz
Change-Id: Id5855d5fd079a29ecbd0c367f5bf73f6e0f16ee7
Diffstat (limited to 'build/config/coverage/BUILD.gn')
-rw-r--r--build/config/coverage/BUILD.gn13
1 files changed, 12 insertions, 1 deletions
diff --git a/build/config/coverage/BUILD.gn b/build/config/coverage/BUILD.gn
index 6c3fca91bc..2939e37f48 100644
--- a/build/config/coverage/BUILD.gn
+++ b/build/config/coverage/BUILD.gn
@@ -27,8 +27,11 @@ config("default_coverage") {
}
cflags = [
+ # LINT.IfChange
"-fprofile-instr-generate",
"-fcoverage-mapping",
+ "-mllvm",
+ "-runtime-counter-relocation=true",
# Following experimental flags removes unused header functions from the
# coverage mapping data embedded in the test binaries, and the reduction
@@ -36,6 +39,11 @@ config("default_coverage") {
# MacOS. Please refer to crbug.com/796290 for more details.
"-mllvm",
"-limited-coverage-experimental=true",
+
+ # LINT.ThenChange(
+ # /build/config/siso/clang_code_coverage_wrapper.star,
+ # /build/toolchain/clang_code_coverage_wrapper.py,
+ # )
]
# Rust coverage is gated on using the Chromium-built Rust toolchain as it
@@ -43,7 +51,10 @@ config("default_coverage") {
# tools that will be used to process the coverage output. This is because
# the coverage file format is not stable.
if (use_chromium_rust_toolchain) {
- rustflags += [ "-Cinstrument-coverage" ]
+ rustflags += [
+ "-Cinstrument-coverage",
+ "-Cllvm-args=-runtime-counter-relocation",
+ ]
}
if (is_linux || is_chromeos) {