diff options
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -42,6 +42,7 @@ config("pdfium_common_config") { config("pdfium_core_config") { cflags = [] + ldflags = [] configs = [ ":pdfium_common_config" ] defines = [ "V8_DEPRECATION_WARNINGS" ] if (is_linux) { @@ -55,6 +56,14 @@ config("pdfium_core_config") { if (is_win) { cflags += [ "/wd4267" ] } + if (use_coverage && is_clang) { + cflags += [ + "--coverage", + "-g", + "-O0", + ] + ldflags += [ "--coverage" ] + } } config("xfa_warnings") { |