Skip to content

Commit

Permalink
Made build flags consistent in Node gcov build
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Oct 13, 2015
1 parent c52dfac commit a89d9e7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 32 deletions.
34 changes: 18 additions & 16 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@
'include_dirs': [
'.',
'include'
],
'conditions': [
['OS != "win"', {
'conditions': [
['config=="gcov"', {
'cflags': [
'-ftest-coverage',
'-fprofile-arcs',
'-O0'
],
'ldflags': [
'-ftest-coverage',
'-fprofile-arcs'
]
}
]
]
}],
]
},
'targets': [
Expand Down Expand Up @@ -278,22 +296,6 @@
'-g'
],
"conditions": [
['OS != "win"', {
'conditions': [
['config=="gcov"', {
'cflags': [
'-ftest-coverage',
'-fprofile-arcs',
'-O0'
],
'ldflags': [
'-ftest-coverage',
'-fprofile-arcs'
]
}
]
]
}],
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
Expand Down
34 changes: 18 additions & 16 deletions templates/binding.gyp.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@
'include_dirs': [
'.',
'include'
],
'conditions': [
['OS != "win"', {
'conditions': [
['config=="gcov"', {
'cflags': [
'-ftest-coverage',
'-fprofile-arcs',
'-O0'
],
'ldflags': [
'-ftest-coverage',
'-fprofile-arcs'
]
}
]
]
}],
]
},
'targets': [
Expand Down Expand Up @@ -95,22 +113,6 @@
'-g'
],
"conditions": [
['OS != "win"', {
'conditions': [
['config=="gcov"', {
'cflags': [
'-ftest-coverage',
'-fprofile-arcs',
'-O0'
],
'ldflags': [
'-ftest-coverage',
'-fprofile-arcs'
]
}
]
]
}],
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
Expand Down

0 comments on commit a89d9e7

Please sign in to comment.