Skip to content
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

npm publish prebuild #3

Open
drom opened this issue Oct 13, 2020 · 0 comments
Open

npm publish prebuild #3

drom opened this issue Oct 13, 2020 · 0 comments

Comments

@drom
Copy link
Member

drom commented Oct 13, 2020

node-circt bindings need to be published on npm to be useful as JS component.
Typically Native C/C++ addons published on npm as the source code and then compiled during installation on a specific platform CPU (x86, ARM); OS (Linux, OSX, Windows (32, 64-bit), JS runtime type / version(Browser, NodeJS, Electron, NWJS).

In the case of LLVM/MLIR/CIRCT, it would be hard/slow to publish or bring all source code during module installation.
We should think about publishing precompiled binaries using one of NodeJS recommended ways:
https://nodejs.org/api/n-api.html#n_api_uploading_precompiled_binaries

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

No branches or pull requests

1 participant