diff --git a/binding.gyp b/binding.gyp index 75e2f3c8de5915a6f675cc75cf54e035ba06e051..747dc57694b7756bbf24f421598d8a5f057433fc 100644 --- a/binding.gyp +++ b/binding.gyp @@ -88,6 +88,11 @@ }, 'targets': [ { + 'cflags': [ + '-std=c99', + '-Wall', + '-Werror' + ], 'target_name': 'gpr', 'product_prefix': 'lib', 'type': 'static_library', @@ -145,6 +150,11 @@ ], }, { + 'cflags': [ + '-std=c99', + '-Wall', + '-Werror' + ], 'target_name': 'grpc', 'product_prefix': 'lib', 'type': 'static_library', @@ -316,7 +326,7 @@ "<!(node -e \"require('nan')\")" ], 'cflags': [ - '-std=c++0x', + '-std=c++11', '-Wall', '-pthread', '-g', diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template index be80750eb7f67877fe790a08da034e608bdf5964..bf01cad34c168467eff604ca59274dd91a8c6ceb 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',