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

Add windows/arm64 support, ensure unsupported platforms see a compile error #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cesaref
Copy link

@cesaref cesaref commented Jan 6, 2025

I've added some updates to support building on windows/arm64.

The tests were previously failing as it was passing through an empty implementation for the memcpy functions, so i've altered these to give a compile error if this happens.

On windows with C++20 enabled, the tests pass on both x64 and arm64 (going via the __cpp_lib_atomic_ref codepath)

@@ -11,7 +11,7 @@
#define CRILL_ARM 1
#define CRILL_32BIT 1
#define CRILL_ARM_32BIT 1
#elif defined (__arm64__)
#elif defined (__arm64__) || defined (_M_ARM64)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we’re at it would be great to add support for Android with __aarch64__ as well (see docs).

Suggested change
#elif defined (__arm64__) || defined (_M_ARM64)
#elif defined (__arm64__) || defined (__aarch64__) || defined (_M_ARM64)

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.

2 participants