tch-rs
tch-rs copied to clipboard
WIP: Build script fixed: includes separated from symbols.
Hello! I found little bug in build.rs and would like to help :D
Problem
NixOS distributive (and some more) separating libtorch shared symbols and headers. And it would be great if we add ability to separate ENV variables for them.
Solution
- [x] Add ENV variable (keep reverse compatibility).
- [ ] Add documentation.
- [ ] Make extra test.
@LaurentMazare, hello! Can i ask for review?
Looks reasonable, could you rebase this branch? Hopefully this should get rid of the clippy error in the CI.
Looks reasonable, could you rebase this branch? Hopefully this should get rid of the clippy error in the CI.
Hello @LaurentMazare! I rebased my branch on new main, added small documentation paragraph into README.md and performed small improvements in build.rs code.
Now I think this MR is ready to merge.
Merged, thanks for the PR.