Commit ea0530af authored by machenbach's avatar machenbach Committed by Commit bot

[coverage] Use optimized builds for coverage data.

Local testing suggests that optimized builds add more speed
without trading off tool usability. We get the following
differences (A: non-optimized build, B: optimized):

Sometimes: Lines instrumented in A (covered and uncovered) are not instrumented in B.
Rarely: Lines instrumented and covered in A are instrumented, but not covered in B.

The latter might simply be caused by timing differences in
the two builds.

BUG=chromium:568949
LOG=n
NOTRY=true

Review URL: https://codereview.chromium.org/1719923002

Cr-Commit-Position: refs/heads/master@{#34193}
parent 72f884a1
...@@ -734,8 +734,7 @@ ...@@ -734,8 +734,7 @@
'cflags': [ '-fPIC', ], 'cflags': [ '-fPIC', ],
}], }],
[ 'coverage==1', { [ 'coverage==1', {
'cflags!': [ '-O3', '-O2', '-O1', ], 'cflags': [ '-fprofile-arcs', '-ftest-coverage'],
'cflags': [ '-fprofile-arcs', '-ftest-coverage', '-O0'],
'ldflags': [ '-fprofile-arcs'], 'ldflags': [ '-fprofile-arcs'],
}], }],
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment