aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/binding.gyp.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/binding.gyp.template')
-rw-r--r--templates/binding.gyp.template8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index be80750eb7..8014ff3718 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -93,6 +93,11 @@
% for lib in libs:
% if lib.name in module.transitive_deps:
{
+ 'cflags': [
+ '-std=c99',
+ '-Wall',
+ '-Werror'
+ ],
'target_name': '${lib.name}',
'product_prefix': 'lib',
'type': 'static_library',
@@ -121,7 +126,7 @@
"<!(node -e \"require('nan')\")"
],
'cflags': [
- '-std=c++0x',
+ '-std=c++11',
'-Wall',
'-pthread',
'-g',
@@ -137,7 +142,6 @@
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
- '-std=c++11',
'-stdlib=libc++'
]
}