mirror of https://github.com/grpc/grpc-node.git
parent
257449853e
commit
a5fb87af87
|
@ -64,6 +64,7 @@
|
||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-DOSATOMIC_USE_INLINED=1',
|
'-DOSATOMIC_USE_INLINED=1',
|
||||||
'-Wno-deprecated-declarations',
|
'-Wno-deprecated-declarations',
|
||||||
|
'-fvisibility=hidden',
|
||||||
],
|
],
|
||||||
'ldflags': [
|
'ldflags': [
|
||||||
'-g',
|
'-g',
|
||||||
|
@ -188,6 +189,7 @@
|
||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-DOSATOMIC_USE_INLINED=1',
|
'-DOSATOMIC_USE_INLINED=1',
|
||||||
'-Wno-deprecated-declarations',
|
'-Wno-deprecated-declarations',
|
||||||
|
'-fvisibility=hidden',
|
||||||
],
|
],
|
||||||
'OTHER_CPLUSPLUSFLAGS': [
|
'OTHER_CPLUSPLUSFLAGS': [
|
||||||
'-g',
|
'-g',
|
||||||
|
@ -198,6 +200,7 @@
|
||||||
'-Wno-unused-parameter',
|
'-Wno-unused-parameter',
|
||||||
'-DOSATOMIC_USE_INLINED=1',
|
'-DOSATOMIC_USE_INLINED=1',
|
||||||
'-Wno-deprecated-declarations',
|
'-Wno-deprecated-declarations',
|
||||||
|
'-fvisibility=hidden',
|
||||||
'-stdlib=libc++',
|
'-stdlib=libc++',
|
||||||
'-std=c++11',
|
'-std=c++11',
|
||||||
'-Wno-error=deprecated-declarations'
|
'-Wno-error=deprecated-declarations'
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
% for arg, prop in [('CPPFLAGS', 'cflags'), ('LDFLAGS', 'ldflags')]:
|
% for arg, prop in [('CPPFLAGS', 'cflags'), ('LDFLAGS', 'ldflags')]:
|
||||||
% if defaults['global'].get(arg, None) is not None:
|
% if defaults['global'].get(arg, None) is not None:
|
||||||
'${prop}': [
|
'${prop}': [
|
||||||
% for item in defaults['global'].get(arg).split():
|
% for item in defaults['global'].get(arg).split() + (['-fvisibility=hidden'] if arg == 'CPPFLAGS' else []):
|
||||||
'${item}',
|
'${item}',
|
||||||
% endfor
|
% endfor
|
||||||
],
|
],
|
||||||
|
@ -169,12 +169,12 @@
|
||||||
'xcode_settings': {
|
'xcode_settings': {
|
||||||
% if defaults['global'].get('CPPFLAGS', None) is not None:
|
% if defaults['global'].get('CPPFLAGS', None) is not None:
|
||||||
'OTHER_CFLAGS': [
|
'OTHER_CFLAGS': [
|
||||||
% for item in defaults['global'].get('CPPFLAGS').split():
|
% for item in defaults['global'].get('CPPFLAGS').split() + ['-fvisibility=hidden']:
|
||||||
'${item}',
|
'${item}',
|
||||||
% endfor
|
% endfor
|
||||||
],
|
],
|
||||||
'OTHER_CPLUSPLUSFLAGS': [
|
'OTHER_CPLUSPLUSFLAGS': [
|
||||||
% for item in defaults['global'].get('CPPFLAGS').split():
|
% for item in defaults['global'].get('CPPFLAGS').split() + ['-fvisibility=hidden']:
|
||||||
'${item}',
|
'${item}',
|
||||||
% endfor
|
% endfor
|
||||||
'-stdlib=libc++',
|
'-stdlib=libc++',
|
||||||
|
|
Loading…
Reference in New Issue