Closed jfilby closed 1 year ago
Actually, you can create a .nims
file:
when defined napibuild:
--define:release
useMalloc
is added by default in build command. Maybe I should remove that so you can have full control
I'm a bit late to use .nims files, but this worked perfectly. I set the GC to ORC. So far no sign of the error, and I've tested quite thoroughly. I think useMalloc should indeed be optional (not added by default).
My node module is causing Node to die quite often. It is typically (always?) a Nim GC function:
I'm not sure if a different GC would help, I think Denim uses the default? I usually specify the ORC GC when compiling the code I'm using for the node addon. I think it might help if Denim had an option to pass in extra args to the Nim compiler called by the Denim build command.