-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Include JNIEXPORT on exported symbols #300
Conversation
6a76ea7
to
706b175
Compare
Note that this includes #299 so I don't have to rebase right after. |
@carl-mastrangelo you still need to rebase this... That said LGTM |
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.
rebase and lgtm
Motivation: As noticed in https://stackoverflow.com/questions/45700277/ compilation can fail if the definition of a method doesn't match the declaration. It's easy enough to add this in, and make it easy to compile. Modifications: Add JNIEXPORT to the entry points. * On Windows this adds: `__declspec(dllexport)` * On Mac this adds: `__attribute__((visibility("default")))` * On Linux (GCC 4.2+) this adds: ` __attribute__((visibility("default")))` * On other it doesn't add anything. Result: Easier compilation
706b175
to
61e197e
Compare
@Scottmitch Done. Should I press the "Squash and Merge" button ? |
I typically do it manually on the command line, which is necessary if there are multiple branches to pull the change into (GitHub only goes into the branch the PR is based off of). I think the "Squash and merge" is the same thing. We just don't want a merge commit to linger on the master branch.
|
@carl-mastrangelo or you could use this script:
and configure it in your .gitconfig:
Then you can do something like this:
You will then use git cherry-pick to actually pick it to other branches later on |
@normanmaurer I ran your script with some changes. Since there is only one branch for this repo, I will avoid cherry picking. |
@carl-mastrangelo +1 ... Just close this issue once its merged and note the git sha here. |
Merged as 1343d60 |
Motivation:
As noticed in https://stackoverflow.com/questions/45700277/
compilation can fail if the definition of a method doesn't
match the declaration. It's easy enough to add this in, and make
it easy to compile.
Modification:
Add JNIEXPORT to the entry points.
__declspec(dllexport)
__attribute__((visibility("default")))
__attribute__((visibility("default")))
Result:
Easier compilation