Can you add the ability to get a debug version (or configure -Doptimize=) for the node-zigar-addon addon?
#660
Closed
MichaelBelousov
started this conversation in
General
Replies: 1 comment
-
|
I'll add the option. It's can be useful during development. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe this doesn't apply to the latest version, since I haven't upgraded from ~0.13.x, as I am waiting for a fix released in the ~0.14.x series for #656.
But I have multiple times ran into bugs in the addon, so that I'd like to be able to build it locally to debug.
I have patched my local version of
node-zigar-addon/dist/index.cjs:43to do it using an environment variable:This actually revealed a bug in the C11 code where
inlinefunctions weren't being linked into the final artifact in Debug mode without astaticspecifier. But it seems you rewrote the addon in zig (awesome), so I doubt that's an issue anymore.Beta Was this translation helpful? Give feedback.
All reactions