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

Support for Apple silicon #20

Closed
dkocher opened this issue Jan 17, 2021 · 5 comments
Closed

Support for Apple silicon #20

dkocher opened this issue Jan 17, 2021 · 5 comments

Comments

@dkocher
Copy link
Contributor

dkocher commented Jan 17, 2021

Dependent on java-native-access/jna#1238

@ccidral
Copy link

ccidral commented May 4, 2021

@dkocher Just curious, were you able to build and use rococoa under Apple silicon? I see that java-native-access/jna#1238 has been closed.

@dkocher
Copy link
Contributor Author

dkocher commented May 5, 2021

There are several things to be sorted out

  • Make sure JNA has no test failures on Apple silicon. See #1323
  • Always use objc_msgSend on Apple silicon to be patched in MsgSendHandler
  • Fix several test failures in Rococoa possibly caused by not type safe calling objc_msgSend .

To fix dynamic-dispatching issues in your code, define a type-safe function pointer instead of calling objc_msgSend directly. Refer to Enable Strict Type Enforcement for Dynamic Method Dispatching

@dkocher
Copy link
Contributor Author

dkocher commented May 17, 2021

  • Fix several test failures in Rococoa possibly caused by not type safe calling objc_msgSend .

To fix dynamic-dispatching issues in your code, define a type-safe function pointer instead of calling objc_msgSend directly. Refer to Enable Strict Type Enforcement for Dynamic Method Dispatching

Not sure if this is actually an issue with JNA using libffi.

@dkocher
Copy link
Contributor Author

dkocher commented Nov 7, 2021

We are making progress.

dkocher added a commit that referenced this issue Nov 7, 2021
@dkocher
Copy link
Contributor Author

dkocher commented Nov 8, 2021

Additional helpful documentation in Managing Functions and Function Pointers
.

@dkocher dkocher closed this as completed in 64c5c74 Nov 8, 2021
dkocher added a commit that referenced this issue Nov 8, 2021
umjammer pushed a commit to umjammer/rococoa that referenced this issue Oct 20, 2022
umjammer pushed a commit to umjammer/rococoa that referenced this issue Oct 20, 2022
bump version
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

2 participants