Permalink
Browse files

build: disable -O3 for C++ coverage

The `cflags` for `--coverage` included `-O0` so far, but that was
overridden by a later `-O3`. Resolve that by adding
`'cflags!': [ '-O3' ]` and increase coverage accuracy.
  • Loading branch information...
addaleax committed Apr 13, 2017
1 parent 78af0df commit d0cd8c8589173da1bf1900573a2e5db85cdcf40c
Showing with 2 additions and 1 deletion.
  1. +2 −1 node.gypi
View
@@ -325,7 +325,8 @@
'-O0' ],
'cflags': [ '--coverage',
'-g',
'-O0' ]
'-O0' ],
'cflags!': [ '-O3' ]
}],
[ 'OS=="sunos"', {
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],

0 comments on commit d0cd8c8

Please sign in to comment.