File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 8686 'configurations' : {
8787 'Debug' : {
8888 'defines' : ['NAPI_CPP_EXCEPTIONS' , 'DEBUG' , '_DEBUG' ],
89+ 'cflags_cc!' : [
90+ "-fno-exceptions" ,
91+ ],
92+ "cflags_cc" : [
93+ "-fexceptions"
94+ ],
8995 'conditions' : [
9096 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"' , {
9197 'cflags_cc!' : [
161167
162168 'Release' : {
163169 'defines' : [
164- 'NAPI_DISABLE_CPP_EXCEPTIONS' ,
170+ 'NAPI_CPP_EXCEPTIONS' ,
171+ ],
172+ 'cflags_cc!' : [
173+ "-fno-exceptions" ,
174+ ],
175+ "cflags_cc" : [
176+ "-fexceptions" ,
165177 ],
166178 'conditions' : [
167179 ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"' , {
200212 'RuntimeLibrary' : 2 ,
201213 'AdditionalOptions' : [
202214 '-std:c++17' ,
215+ '/EHsc'
203216 ],
204217 },
205218 'VCLinkerTool' : {
You can’t perform that action at this time.
0 commit comments