Skip to content

Prep for building node addon against precompiled skipruntime #909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jberdine
Copy link
Contributor

@jberdine jberdine commented May 19, 2025

This PR changes the build in preparation for building the native node addon against a precompiled skipruntime library. The aim is to enable end users to first install the binary skip runtime to their host and then install the addon just as a standard npm dependency, without needing to build the skiplang toolchain or have it installed. To this end, this PR:

  • adapts the npm build (package.json and binding.gyp files) to expect the skipruntime library to be installed on the host;

  • adapts the dev build (Makefiles) to build the skipruntime library from the current sources, and set the other builds and tests to use this current version.

At a high level, what this means is that the npm commands use the host-installed skipruntime, and are therefore meant for use by end users; while the make commands use the skipruntime built from current sources, and are therefore meant for development and testing use.

@jberdine
Copy link
Contributor Author

This is not useful on its own, but I wanted to put this PR up in case anyone sees issues or problems with this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant