File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 44 "target_name" : "winicon" ,
55 "sources" : ["src/winicon.cc" ],
66 "include_dirs" : [
7- "<!(node -p \" require('node-addon-api').include\" )"
7+ "<!@ (node -p \" require('node-addon-api').include\" )" ,
88 ],
99 "dependencies" : [
1010 "<!(node -p \" require('node-addon-api').gyp\" )"
1111 ],
12- "defines" : ["NAPI_DISABLE_CPP_EXCEPTIONS " ],
12+ "defines" : ["NAPI_CPP_EXCEPTIONS " ],
1313 "conditions" : [
1414 ["OS=='win'" , {
1515 "defines" : ["WIN32" ],
2020 "Gdi32.lib"
2121 ]
2222 }]
23- ]
23+ ],
24+ "msvs_settings" : {
25+ "VCCLCompilerTool" : {
26+ "AdditionalOptions" : ["/std:c++17" ]
27+ }
28+ },
29+ "cflags!" : ["-fno-exceptions" ],
30+ "cflags_cc!" : ["-fno-exceptions" ],
2431 }
2532 ]
2633}
Original file line number Diff line number Diff line change 88 await $ `yarn prebuildify --strip --napi --arch x64` ;
99} catch ( err ) {
1010 console . error ( 'Build failed:' , err ) ;
11+ throw err ;
1112}
You can’t perform that action at this time.
0 commit comments