Open lmarcelocc opened 5 months ago
I'm receiving 2 different issues:
Both GCC_ENABLE_CPP_EXCEPTIONS and GCC_SYMBOLS_PRIVATE_EXTERN are set to YES.
GCC_ENABLE_CPP_EXCEPTIONS
GCC_SYMBOLS_PRIVATE_EXTERN
YES
I was able to workaround the issue, changing the way bcrypt throws exceptions, from what I saw here e.g.:
bcrypt
Napi::TypeError::New(env, "1 argument expected"); return Napi::Value();
instead of
throw Napi::TypeError::New(env, "4 arguments expected");
Tho, not the best solution.
For the NAPI Exception support not detected, for now, I just add this here:
'defines': [ '_GNU_SOURCE', 'NAPI_DISABLE_CPP_EXCEPTIONS', ],
What did you expect to happen? Compile sucessfully
Which version of nodejs and OS? Node v18.18.2 MacBook Pro M1 - MacOS Sonoma 14.2.1 Xcode 15.2
If you find a bug, please write a failing test.
Thanks in advance for you time!
I'm receiving 2 different issues:
Both
GCC_ENABLE_CPP_EXCEPTIONS
andGCC_SYMBOLS_PRIVATE_EXTERN
are set toYES
.I was able to workaround the issue, changing the way
bcrypt
throws exceptions, from what I saw here e.g.:instead of
Tho, not the best solution.
For the NAPI Exception support not detected, for now, I just add this here:
What did you expect to happen? Compile sucessfully
Which version of nodejs and OS? Node v18.18.2 MacBook Pro M1 - MacOS Sonoma 14.2.1 Xcode 15.2
If you find a bug, please write a failing test.
Thanks in advance for you time!