Fix node-gyp configuration for example 'exception'.
This commit is contained in:
parent
74825d2d1a
commit
4c8a1ea5e8
1 changed files with 22 additions and 1 deletions
|
|
@ -2,7 +2,28 @@
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"target_name": "example",
|
"target_name": "example",
|
||||||
"sources": [ "example.cxx", "example_wrap.cxx" ]
|
"sources": [ "example.cxx", "example_wrap.cxx" ],
|
||||||
|
'defines': [
|
||||||
|
'BUILDING_NODE_EXTENSION=1',
|
||||||
|
],
|
||||||
|
'conditions': [
|
||||||
|
['OS=="mac"',
|
||||||
|
{
|
||||||
|
'xcode_settings': {
|
||||||
|
'GCC_ENABLE_CPP_RTTI': 'YES',
|
||||||
|
'GCC_ENABLE_CPP_EXCEPTIONS' : 'YES'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"',
|
||||||
|
{
|
||||||
|
'cflags': [ "-Wno-unused-variable", "-Wno-unused-but-set-variable", "-Wno-unused-but-set-parameter"],
|
||||||
|
'cflags_cc': [ "-Wno-unused-variable", "-Wno-unused-but-set-variable", "-Wno-unused-but-set-parameter"],
|
||||||
|
'cflags!': [ '-fno-exceptions' ],
|
||||||
|
'cflags_cc!': [ '-fno-exceptions', '-fno-rtti' ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue