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 ARM64EC build and CI support #2168

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

jblazquez
Copy link
Contributor

@jblazquez jblazquez commented Apr 9, 2024

This is a re-land of #2165, with the issue of the incorrect inclusion of <intrin.h> on non-Windows platforms addressed.

I tested building this locally using the following combinations:

  • Mac / arm64
  • Mac / x86_64
  • Linux / x86_64
  • Windows / X64
  • Windows / ARM64
  • Windows / ARM64EC

I also tested running the tests on a Windows 11 ARM64 VM and they all passed.

This PR also adds an ARM64EC architecture CI build workflow to windows-vs17. See here for an example of a passing CI run. I had to switch the vs17-arm-ci builds to target the Windows 11 SDK because ARM64EC is Windows 11 only.

It's not currently possible (as far as I know) to actually run Windows ARM tests in CI, so - as before - the Windows ARM CI workflows are build-only.

Note that support for ARM64EC was added in CMake 3.20.0 and improved in 3.23.0. The minimum version of CMake declared in the CMakeLists.txt file is 3.14.0. I'm not sure if we need to do something about that minimum version.

@@ -9,10 +9,10 @@

#include <cstring>

#if _M_ARM64
#if SIMDJSON_REGULAR_VISUAL_STUDIO && SIMDJSON_IS_ARM64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This now exactly mirrors the defines used on line 37 when using __umulh.

@lemire
Copy link
Member

lemire commented Apr 9, 2024

Thanks. Merging (again). Hopefully this will be for good.

I verified that it works on a non-Windows ARM-based system.

@lemire lemire merged commit 40b414d into simdjson:master Apr 9, 2024
43 checks passed
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

2 participants