[PATCH] Cygwin: configure: allow configuring winsup for AArch64

Radek Barton radek.barton@microsoft.com
Thu Jun 12 12:34:32 GMT 2025


Hello.

This is a first patch from series that aspire to allow building and linking Cygwin for Windows on Arm64 assuming there is already a `aarch64-pc-cygwin` toolchain available.
For validating it, the AArch64 Ubuntu cross-toolchain from https://github.com/Windows-on-ARM-Experiments/mingw-woarm64-build/releases and the https://github.com/Windows-on-ARM-Experiments/newlib-cygwin/pull/31 job added to `cygwin.yml` GHA workflow can be used.

This patch only adds the necessary changes to `configure.ac` to pass the configuration step of the build.

Thank you for your feedback.

Radek

>From f5b653121eda766db76c058f54c6039868a3366d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Barto=C5=88?= <radek.barton@microsoft.com>
Date: Thu, 5 Jun 2025 11:44:23 +0200
Subject: [PATCH] Cygwin: configure: allow configuring winsup for AArch64

---
 winsup/configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/configure.ac b/winsup/configure.ac
index 9b9b59dbc..18adf3d97 100644
--- a/winsup/configure.ac
+++ b/winsup/configure.ac
@@ -69,12 +69,14 @@ DLL_ENTRY="dll_entry"
 
 case "$target_cpu" in
    x86_64)	;;
+   aarch64)	;;
    *)		AC_MSG_ERROR([Invalid target processor "$target_cpu"]) ;;
 esac
 
 AC_SUBST(DLL_ENTRY)
 
 AM_CONDITIONAL(TARGET_X86_64, [test $target_cpu = "x86_64"])
+AM_CONDITIONAL(TARGET_AARCH64, [test $target_cpu = "aarch64"])
 
 AC_ARG_ENABLE(doc,
 	      [AS_HELP_STRING([--disable-doc], [do not build documentation])],,
-- 
2.49.0.vfs.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cygwin-configure-allow-configuring-winsup-for-AArch6.patch
Type: application/octet-stream
Size: 893 bytes
Desc: 0001-Cygwin-configure-allow-configuring-winsup-for-AArch6.patch
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20250612/1e3eb32d/attachment.obj>


More information about the Cygwin-patches mailing list