We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1e4d8 commit 6739868Copy full SHA for 6739868
1 file changed
binding.gyp
@@ -1,7 +1,13 @@
1
{
2
'includes': [ 'common.gypi' ],
3
'variables': {
4
- 'error_on_warnings%':'true'
+ 'error_on_warnings%':'true',
5
+ # includes we don't want warnings for.
6
+ # As a variable to make easy to pass to
7
+ # cflags (linux) and xcode (mac)
8
+ 'system_includes': [
9
+ "-isystem <(module_root_dir)/<!(node -e \"require('nan')\")"
10
+ ]
11
},
12
'targets': [
13
@@ -22,10 +28,16 @@
22
28
}
23
29
}]
24
30
],
31
+ 'cflags': [
32
+ '<@(system_includes)'
33
+ ],
25
34
'xcode_settings': {
26
35
'OTHER_LDFLAGS':[
27
36
'-Wl,-bind_at_load'
37
38
+ 'OTHER_CPLUSPLUSFLAGS': [
39
40
41
'GCC_ENABLE_CPP_RTTI': 'YES',
42
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
43
'MACOSX_DEPLOYMENT_TARGET':'10.8',
0 commit comments