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

Changes required for Windows ARM64 #412

Closed
wants to merge 1 commit into from
Closed

Conversation

Gerdya
Copy link
Contributor

@Gerdya Gerdya commented Nov 14, 2022

Just a few changes in order to make embree compile for arm64-windows target.
Note: clang-cl must be used for NEON

@svenwoop
Copy link
Contributor

I merged this into our internal devel branch. Change will be in next release.

@@ -89,7 +89,7 @@ namespace embree
#endif
}

#if defined(__X86_64__)
#if defined(__X86_64__) || defined (__aarch64__)

Choose a reason for hiding this comment

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

__aarch64__ is not defined on a pure Arm64 Windows environment with Arm64 MSVC, so this change is not sufficient to make it compile. However, _M_ARM64 is defined.

Why is this function conditionally compiled for only x86_64 and arm64 anyway? Can we just replaced it with a uint64_t version and make it always compiled? Or can we make it compiled for any 64-bit platform?

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.

None yet

3 participants