Skip to content

Commit 6739868

Browse files
author
Dane Springmeyer
committed
implement #39
1 parent 0d1e4d8 commit 6739868

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

binding.gyp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
'includes': [ 'common.gypi' ],
33
'variables': {
4-
'error_on_warnings%':'true'
4+
'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+
]
511
},
612
'targets': [
713
{
@@ -22,10 +28,16 @@
2228
}
2329
}]
2430
],
31+
'cflags': [
32+
'<@(system_includes)'
33+
],
2534
'xcode_settings': {
2635
'OTHER_LDFLAGS':[
2736
'-Wl,-bind_at_load'
2837
],
38+
'OTHER_CPLUSPLUSFLAGS': [
39+
'<@(system_includes)'
40+
],
2941
'GCC_ENABLE_CPP_RTTI': 'YES',
3042
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
3143
'MACOSX_DEPLOYMENT_TARGET':'10.8',

0 commit comments

Comments
 (0)