summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi20
1 files changed, 16 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi
index ed5992f..302a531 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -128,10 +128,22 @@
'-fprofile-arcs' ],
'link_settings': { 'libraries': [ '-lgcov' ] },
}],
- ]},
- # TODO(jrg): options for code coverage on Windows
- ],
- ],
+ # Finally, for Windows, we simply turn on profiling.
+ ['OS=="win"', {
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'Profile': 'true',
+ },
+ 'VCCLCompilerTool': {
+ # /Z7, not /Zi, so coverage is happyb
+ 'DebugInformationFormat': '1',
+ 'AdditionalOptions': '/Yd',
+ }
+ }
+ }], # OS==win
+ ], # conditions for coverage
+ }], # coverage!=0
+ ], # conditions for 'target_defaults'
'default_configuration': 'Debug',
'configurations': {
# VCLinkerTool LinkIncremental values below: