File tree Expand file tree Collapse file tree 2 files changed +41
-22
lines changed Expand file tree Collapse file tree 2 files changed +41
-22
lines changed Original file line number Diff line number Diff line change 2
2
'defines' : [ 'NAPI_CPP_EXCEPTIONS' ],
3
3
'cflags!' : [ '-fno-exceptions' ],
4
4
'cflags_cc!' : [ '-fno-exceptions' ],
5
- 'msvs_settings' : {
6
- 'VCCLCompilerTool' : {
7
- 'ExceptionHandling' : 1 ,
8
- 'EnablePREfast' : 'true' ,
9
- },
10
- },
11
- 'xcode_settings' : {
12
- 'CLANG_CXX_LIBRARY' : 'libc++' ,
13
- 'MACOSX_DEPLOYMENT_TARGET' : '10.7' ,
14
- 'GCC_ENABLE_CPP_EXCEPTIONS' : 'YES' ,
15
- },
5
+ 'conditions' : [
6
+ ["OS=='win'" , {
7
+ "defines" : [
8
+ "_HAS_EXCEPTIONS=1"
9
+ ],
10
+ "msvs_settings" : {
11
+ "VCCLCompilerTool" : {
12
+ "ExceptionHandling" : 1 ,
13
+ 'EnablePREfast' : 'true' ,
14
+ },
15
+ },
16
+ }],
17
+ ["OS=='mac'" , {
18
+ 'xcode_settings' : {
19
+ 'GCC_ENABLE_CPP_EXCEPTIONS' : 'YES' ,
20
+ 'CLANG_CXX_LIBRARY' : 'libc++' ,
21
+ 'MACOSX_DEPLOYMENT_TARGET' : '10.7' ,
22
+ },
23
+ }],
24
+ ],
16
25
}
Original file line number Diff line number Diff line change 2
2
'defines' : [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
3
3
'cflags' : [ '-fno-exceptions' ],
4
4
'cflags_cc' : [ '-fno-exceptions' ],
5
- 'msvs_settings' : {
6
- 'VCCLCompilerTool' : {
7
- 'ExceptionHandling' : 0 ,
8
- 'EnablePREfast' : 'true' ,
9
- },
10
- },
11
- 'xcode_settings' : {
12
- 'CLANG_CXX_LIBRARY' : 'libc++' ,
13
- 'MACOSX_DEPLOYMENT_TARGET' : '10.7' ,
14
- 'GCC_ENABLE_CPP_EXCEPTIONS' : 'NO' ,
15
- },
5
+ 'conditions' : [
6
+ ["OS=='win'" , {
7
+ # _HAS_EXCEPTIONS is already defined and set to 0 in common.gypi
8
+ #"defines": [
9
+ # "_HAS_EXCEPTIONS=0"
10
+ #],
11
+ "msvs_settings" : {
12
+ "VCCLCompilerTool" : {
13
+ 'ExceptionHandling' : 0 ,
14
+ 'EnablePREfast' : 'true' ,
15
+ },
16
+ },
17
+ }],
18
+ ["OS=='mac'" , {
19
+ 'xcode_settings' : {
20
+ 'CLANG_CXX_LIBRARY' : 'libc++' ,
21
+ 'MACOSX_DEPLOYMENT_TARGET' : '10.7' ,
22
+ 'GCC_ENABLE_CPP_EXCEPTIONS' : 'NO' ,
23
+ },
24
+ }],
25
+ ],
16
26
}
You can’t perform that action at this time.
0 commit comments