Skip to content

Commit f5c1c25

Browse files
committed
8353066: Properly detect Windows/aarch64 as build platform
Backport-of: 3241b4e111e3dbf475c0e5be117c2a8d1a63ad35
1 parent 93636bf commit f5c1c25

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

make/autoconf/build-aux/config.guess

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
44
# Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
55
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
66
#
@@ -53,17 +53,21 @@ if [ "x$OUT" = x ]; then
5353
fi
5454
fi
5555

56-
# Test and fix cygwin on x86_64
57-
echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
56+
# Test and fix cygwin/msys CPUs
57+
echo $OUT | grep -e "-pc-cygwin" > /dev/null 2> /dev/null
5858
if test $? != 0; then
59-
echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null
59+
echo $OUT | grep -e "-pc-mingw" > /dev/null 2> /dev/null
6060
fi
6161
if test $? = 0; then
6262
case `echo $PROCESSOR_IDENTIFIER | cut -f1 -d' '` in
6363
intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
6464
REAL_CPU=x86_64
6565
OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
6666
;;
67+
ARMv8)
68+
REAL_CPU=aarch64
69+
OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
70+
;;
6771
esac
6872
fi
6973

make/autoconf/toolchain_microsoft.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -87,7 +87,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
8787
elif test "x$TARGET_CPU" = xaarch64; then
8888
# for host x86-64, target aarch64
8989
# aarch64 requires Visual Studio 16.8 or higher
90-
VCVARSFILES="vcvarsamd64_arm64.bat vcvarsx86_arm64.bat"
90+
VCVARSFILES="vcvarsarm64.bat vcvarsamd64_arm64.bat vcvarsx86_arm64.bat"
9191
fi
9292
9393
for VCVARSFILE in $VCVARSFILES; do

0 commit comments

Comments
 (0)