★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/3fe4498fe1Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
build: fix c++ code coverage on macOS
PR-URL: #24520
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
refack authored and BridgeAR committed Dec 5, 2018
1 parent be54dc0 commit 3fe4498fe1e6335637b7bacec01c419f0a6f09fa
Showing with 11 additions and 8 deletions.
  1. +11 −8 node.gypi
@@ -274,25 +274,28 @@
'-Wl,--whole-archive <(v8_base)',
'-Wl,--no-whole-archive' ]
}],
[ 'OS in "mac freebsd linux" and node_shared=="false"'
' and coverage=="true"', {
[ 'coverage=="true" and node_shared=="false" and OS in "mac freebsd linux"', {
'cflags!': [ '-O3' ],
'ldflags': [ '--coverage',
'-g',
'-O0' ],
'cflags': [ '--coverage',
'-g',
'-O0' ],
'cflags!': [ '-O3' ],
'xcode_settings': {
'OTHER_LDFLAGS': [
'--coverage',
],
'OTHER_CFLAGS+': [
'OTHER_CFLAGS': [
'--coverage',
'-g',
'-O0'
],
}
},
'conditions': [
[ '_type=="executable"', {
'xcode_settings': {
'OTHER_LDFLAGS': [ '--coverage', ],
},
}],
],
}],
[ 'OS=="sunos"', {
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],

0 comments on commit 3fe4498

Please sign in to comment.