GeezerVison is showing github.com — build: fix c++ code coverage on macOS · nodejs/node@c57008e
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: node.gypi +11-8Lines changed: 11 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 269 | 269 | '-Wl,--whole-archive <(v8_base)', | 270 | 270 | '-Wl,--no-whole-archive' ] | 271 | 271 | }], | 272 | | - [ 'OS in "mac freebsd linux" and node_shared=="false"' | 273 | | - ' and coverage=="true"', { | | 272 | + [ 'coverage=="true" and node_shared=="false" and OS in "mac freebsd linux"', { | | 273 | + 'cflags!': [ '-O3' ], | 274 | 274 | 'ldflags': [ '--coverage', | 275 | 275 | '-g', | 276 | 276 | '-O0' ], | 277 | 277 | 'cflags': [ '--coverage', | 278 | 278 | '-g', | 279 | 279 | '-O0' ], | 280 | | - 'cflags!': [ '-O3' ], | 281 | 280 | 'xcode_settings': { | 282 | | - 'OTHER_LDFLAGS': [ | 283 | | - '--coverage', | 284 | | - ], | 285 | | - 'OTHER_CFLAGS+': [ | | 281 | + 'OTHER_CFLAGS': [ | 286 | 282 | '--coverage', | 287 | 283 | '-g', | 288 | 284 | '-O0' | 289 | 285 | ], | 290 | | - } | | 286 | + }, | | 287 | + 'conditions': [ | | 288 | + [ '_type=="executable"', { | | 289 | + 'xcode_settings': { | | 290 | + 'OTHER_LDFLAGS': [ '--coverage', ], | | 291 | + }, | | 292 | + }], | | 293 | + ], | 291 | 294 | }], | 292 | 295 | [ 'OS=="sunos"', { | 293 | 296 | 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ], | |
|