Skip to content

Build fixes for ARM64 (aarch64) Windows

Chun-wei Fan requested to merge fanc999/orc:aarch64-msvc into master

Hi,

This MR attempts to make ORC buildable for ARM64 (desktop) Windows by doing the following:

  • Don't include unistd.h and sys/time.h unconditionally, since these headers may not necessarily exist in the Windows toolchain. We already check for them during Meson's configure stage.
  • Use Windows APIs to implement orc_arm_flush_cache() on Windows.
  • Assume ARMv8 when building for ARM64 Windows, since this is the minimal ARM CPU class supported for Windows desktop apps (i.e., I am currently not aiming to support Windows RT (8/8.1 ARMv7) systems, since they do not support desktop/non-Microsoft-store apps officially).

I attempted the build using Visual Studio 2017 15.9.x.

Should fix issue #36 (closed).

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports

Loading