Skip to content

Commit

Permalink
Compile Node extension with c99 and c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jan 8, 2016
1 parent abf85d9 commit 3abed31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 11 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
},
'targets': [
{
'cflags': [
'-std=c99',
'-Wall',
'-Werror'
],
'target_name': 'gpr',
'product_prefix': 'lib',
'type': 'static_library',
Expand Down Expand Up @@ -145,6 +150,11 @@
],
},
{
'cflags': [
'-std=c99',
'-Wall',
'-Werror'
],
'target_name': 'grpc',
'product_prefix': 'lib',
'type': 'static_library',
Expand Down Expand Up @@ -316,7 +326,7 @@
"<!(node -e \"require('nan')\")"
],
'cflags': [
'-std=c++0x',
'-std=c++11',
'-Wall',
'-pthread',
'-g',
Expand Down
7 changes: 6 additions & 1 deletion templates/binding.gyp.template
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -121,7 +126,7 @@
"<!(node -e \"require('nan')\")"
],
'cflags': [
'-std=c++0x',
'-std=c++11',
'-Wall',
'-pthread',
'-g',
Expand Down

0 comments on commit 3abed31

Please sign in to comment.