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
Make it possible to regenerate bindgen work #12
Comments
I will remove generated code from check-in. Will use build.rs to generate them at compile them. |
Unfortunately, bindgen requires installation of LLVM which adds burden for developer. I will update instruction on how to regenerate manually at least. |
nj-sys crate now contain Makefile to re-generate binding.rs. let me know if this doesn't work |
After doing |
What version of LLVM are you using? Existing binding.rs was generated using 9.0.0.1. When I tried using latest version 10.0, only difference is a single line with From looking at your binding.rs, it seems be missing Darwin pthread.
Not sure if they are important. You can test binding.rs by running example test. Also be sure to generate binding.rs by
|
Last version I had installed with homebrew, which turns out to be 6.0.0. Probably worth documenting the version of LLVM used to generate binding.rs then? |
done. README.md updated with LLVM requirement |
Retried with more modern LLVM. LGTM. |
closing |
Currently this is hardcoded as https://github.com/infinyon/node-bindgen/blob/master/nj-sys/src/binding.rs with no docs/build.rs to redo it. It either needs some instructions on how to regenerate it, or ideally it gets rebuilt at build time.
The text was updated successfully, but these errors were encountered: