Skip to content

Commit

Permalink
feat: enable exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Apr 30, 2024
1 parent e5a67e1 commit 130974f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bindings/node.js/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
],
"defines": [
"__BLST_PORTABLE__",
"NAPI_DISABLE_CPP_EXCEPTIONS"
"NAPI_CPP_EXCEPTIONS"
],
"conditions": [
["OS!='win'", {
"sources": ["deps/blst/build/assembly.S"],
"cflags_cc": [
"-fexceptions",
"-std=c++17",
"-fPIC"
]
Expand All @@ -28,15 +29,18 @@
"sources": ["deps/blst/build/win64/*-x86_64.asm"],
"defines": [
"_CRT_SECURE_NO_WARNINGS",
"_HAS_EXCEPTIONS=1"
],
"msbuild_settings": {
"ClCompile": {
"ExceptionHandling": 1,
"AdditionalOptions": ["/std:c++17"]
}
}
}],
["OS=='mac'", {
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "13.0"
}
Expand Down

0 comments on commit 130974f

Please sign in to comment.