Skip to content

Add support for building and testing Root on Windows ARM64 - #24128

Closed
MugundanMCW wants to merge 3 commits into
root-project:masterfrom
MugundanMCW:Windows-arm64
Closed

MugundanMCW wants to merge 3 commits into
root-project:masterfrom
MugundanMCW:Windows-arm64

Conversation

@MugundanMCW

Copy link
Copy Markdown

This Pull request:

  • The PR adds support for building and testing Root on Windows ARM64 CI.

Changes or fixes:

  • root-windows-arm64.yml : Introduces a dedicated workflow for testing root using the public Windows ARM64 runner.
  • Cmake files were updated to detect Windows ARM64 architecture.
  • Changes were made to fix build failures and the 140+ failed test cases with appropriate fixes.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

This PR fixes the compilation errors and the test failures faced on Windows ARM64

Build and test fixes for MSVC ARM64 (windows-11-arm):

- cling: on Windows ARM64, mark external globals and address-taken
  functions as dllimport before JIT compilation, so they are reached
  through __imp_ slots instead of out-of-range (+/-4 GB) PC-relative
  references.
- cling: prefer ucrtbase.dll over legacy msvcrt.dll when a symbol
  resolves into msvcrt, avoiding CRT state corruption (stdout/fflush).
- cling: allocate JIT memory per section on Windows ARM64.
- llvm: AArch64 GlobalISel falls back to SelectionDAG for Win64
  functions with an inreg sret argument, so the sret pointer is
  returned in x0 as the MSVC ABI requires.
- llvm: RuntimeDyld COFF/AArch64 scales the PAGEOFFSET_12L addend by
  the load/store access size.
- core: ARM64 implementations of TWinNTSystem::GetCPUSpeed and
  GetL2CacheSize; guard GetLibraries against an unset %LIB%.
- cmake: MACHINE_ARCH=ARM64 for ACLiC; civetweb MSVC ARM64 detection.
- tests: disable test-check-nullptr on Windows ARM64 (no JIT unwind
  info registration, as on macOS arm64); skip browser-based tests on
  Windows when wmic is not available; stresshistogram-interpreted is
  not expected to fail on ARM64.
- ci: new Windows ARM64 workflow, with fftw3 from vcpkg.

ctest on Windows 11 ARM64: 1011/1012 passing (was 867/1010).
@dpiparo

dpiparo commented Nov 13, 2026

Copy link
Copy Markdown
Member

Thanks for the PR. Presently we are not planning to add that platform to the battery. Should you encounter any problem with it, please do not hesitate to reach out.

@dpiparo dpiparo closed this Nov 13, 2026
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.

3 participants