Index: gyp/common_conditions.gypi |
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi |
index 9b9dc226186cf8c12b03950ecba193053ffcaa96..c4d0d017b08fe2e40e56972fff215bd2b448f7ac 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': { |
}, |