diff options
author | borenet <borenet@google.com> | 2015-07-06 07:43:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-06 07:43:58 -0700 |
commit | 11271fe3a40280a233c9a1c583497844d067088e (patch) | |
tree | fca320949197009cb1f9ad1f297125379c01b80e /gyp | |
parent | f0ebdd7463275f8183df94f1f8a8ec3761652e7c (diff) |
Add scripts for running LLVM coverage
BUG=skia:2430
Review URL: https://codereview.chromium.org/1213063009
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/common_conditions.gypi | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index 9b9dc22618..c4d0d017b0 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -408,8 +408,15 @@ ], 'configurations': { 'Coverage': { - 'cflags': ['--coverage'], - 'ldflags': ['--coverage'], + 'conditions': [ + [ 'skia_clang_build', { + 'cflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], + 'ldflags': ['-fprofile-instr-generate', '-fcoverage-mapping'], + }, { + 'cflags': ['--coverage'], + 'ldflags': ['--coverage'], + }], + ], }, 'Debug': { }, |