[PATCH] Add native windows on arm64 support

Niyas Sait <niyas.sait@linaro.org>

From: Niyas Sait <niyas.sait@linaro.org>
To: pgsql-hackers@lists.postgresql.org
Date: 2022-02-23T10:09:36Z
Lists: pgsql-hackers

Attachments

Hello,

I have created a patch that adds support for building Postgres for the
windows/arm64 platform using the MSVC toolchain. Following changes have
been included

1. Extend MSVC scripts to handle ARM64 platform.
2. Add arm64 definition of spin_delay function.
3. Exclude arm_acle.h import with MSVC compiler.

Compilation steps are consistent and similar to other windows platforms.

The change has been tested on windows/x86_64 and windows/arm64 and all
regression tests passes on both platforms.

Thanks,
Niyas

Commits

  1. MSVC: Support building for AArch64.

  2. Remove "#ifdef WIN32" guards from src/port/win32*.c

  3. Adjust XML test case to avoid unstable behavior.

  4. Enable RandomizedBaseAddress (ASLR) on Windows with MSVC builds