Skip to content
Snippets Groups Projects
Commit 3abed318 authored by murgatroid99's avatar murgatroid99
Browse files

Compile Node extension with c99 and c++11

parent abf85d96
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,11 @@ ...@@ -88,6 +88,11 @@
}, },
'targets': [ 'targets': [
{ {
'cflags': [
'-std=c99',
'-Wall',
'-Werror'
],
'target_name': 'gpr', 'target_name': 'gpr',
'product_prefix': 'lib', 'product_prefix': 'lib',
'type': 'static_library', 'type': 'static_library',
...@@ -145,6 +150,11 @@ ...@@ -145,6 +150,11 @@
], ],
}, },
{ {
'cflags': [
'-std=c99',
'-Wall',
'-Werror'
],
'target_name': 'grpc', 'target_name': 'grpc',
'product_prefix': 'lib', 'product_prefix': 'lib',
'type': 'static_library', 'type': 'static_library',
...@@ -316,7 +326,7 @@ ...@@ -316,7 +326,7 @@
"<!(node -e \"require('nan')\")" "<!(node -e \"require('nan')\")"
], ],
'cflags': [ 'cflags': [
'-std=c++0x', '-std=c++11',
'-Wall', '-Wall',
'-pthread', '-pthread',
'-g', '-g',
......
...@@ -93,6 +93,11 @@ ...@@ -93,6 +93,11 @@
% for lib in libs: % for lib in libs:
% if lib.name in module.transitive_deps: % if lib.name in module.transitive_deps:
{ {
'cflags': [
'-std=c99',
'-Wall',
'-Werror'
],
'target_name': '${lib.name}', 'target_name': '${lib.name}',
'product_prefix': 'lib', 'product_prefix': 'lib',
'type': 'static_library', 'type': 'static_library',
...@@ -121,7 +126,7 @@ ...@@ -121,7 +126,7 @@
"<!(node -e \"require('nan')\")" "<!(node -e \"require('nan')\")"
], ],
'cflags': [ 'cflags': [
'-std=c++0x', '-std=c++11',
'-Wall', '-Wall',
'-pthread', '-pthread',
'-g', '-g',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment