aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-10-13 16:03:16 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-10-13 16:03:16 -0700
commita89d9e764ca915fcb1bba4b730be6f0a7044a6bb (patch)
treea7f7c5f6addcd22f2552d3c3889f82610a76390d /templates
parentc52dfac9997d66a2f9d98df0bbb55984d988129e (diff)
Made build flags consistent in Node gcov build
Diffstat (limited to 'templates')
-rw-r--r--templates/binding.gyp.template34
1 files changed, 18 insertions, 16 deletions
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index 50d0823d1d..bfa6a56bf6 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -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': [
@@ -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',