Skip to content

Conversation

@PJB3005
Copy link
Contributor

@PJB3005 PJB3005 commented Nov 8, 2025

This is for OpenDream.

macOS specifically just needs to be supported in the library loader code, by making it use the same dlopen() path as Linux.

byondapi.h does not support ARM64 properly due to missing #if statements for it. This leads to DM_64BIT not being set and u4c being miscompiled as a u64. I decided to just work around this by telling bindgen to add that define if the target is aarch64, instead of modifying the header files themselves.

This is for OpenDream.

macOS specifically just needs to be supported in the library loader code, by making it use the same dlopen() path as Linux.

byondapi.h does not support ARM64 properly due to missing #if statements for it. This leads to DM_64BIT not being set and u4c being miscompiled as a u64. I decided to just work around this by telling bindgen to add that define if the target is aarch64, instead of modifying the header files themselves.
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

Successfully merging this pull request may close these issues.

1 participant