]> git.kaiwu.me - nginx.git/commitdiff
Win32: added detection of ARM64 target.
authorAleksei Bavshin <a.bavshin@nginx.com>
Tue, 14 Jan 2025 19:11:28 +0000 (11:11 -0800)
committerAleksei Bavshin <a.bavshin@f5.com>
Fri, 18 Apr 2025 19:57:26 +0000 (12:57 -0700)
This extends the target selection implemented in dad6ec3aa63f to support
Windows ARM64 platforms.  OpenSSL support for VC-WIN64-ARM target first
appeared in 1.1.1 and is present in all currently supported (3.x)
branches.

As a side effect, ARM64 Windows builds will get 16-byte alignment along
with the rest of non-x86 platforms.  This is safe, as malloc on 64-bit
Windows guarantees the fundamental alignment of allocations, 16 bytes.

auto/cc/msvc
auto/lib/openssl/make

index 567bac7bcd22208215d984953c19910bcb0b4bcb..fe7c34e49cd69778e95f5fd7d5b2fbed91773a1f 100644 (file)
@@ -26,6 +26,10 @@ ngx_msvc_ver=`echo $NGX_MSVC_VER | sed -e 's/^\([0-9]*\).*/\1/'`
 
 case "$NGX_MSVC_VER" in
 
+    *ARM64)
+        NGX_MACHINE=arm64
+    ;;
+
     *x64)
         NGX_MACHINE=amd64
     ;;
index a7e9369e7d08c99e7ac82df646464953c958935b..f8480146dec5564c717ad34beb06ef69eb52db25 100644 (file)
@@ -13,6 +13,10 @@ case "$CC" in
                 OPENSSL_TARGET=VC-WIN64A
             ;;
 
+            arm64)
+                OPENSSL_TARGET=VC-WIN64-ARM
+            ;;
+
             *)
                 OPENSSL_TARGET=VC-WIN32
             ;;