-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update to allow for platform dependent libs in CGO #18
Conversation
hm interesting, let me test it in a larger repo, see how it works before merging |
hey @daulet , so what do you think of this PR? Do you believe it allows more ease of use of these bindings that we can merge and release? |
Yes, I think making this build time parameter satisfies all use cases, however i find it annoying to specify LD flags every time i |
i suppose we could just use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
This simplifies other go programs usage of this library. Currently, you have to copy the
libtokenizers.a
file to$(go env GOMODCACHE)/daulet/tokenizers@${version}
. The change here forces the user to specify where to load this library from instead of it being required to be at a certain place.