Skip to content

Commit 642bbbf

Browse files
authored
add jdk11u fixpath path for windows aarch64 (#3095)
1 parent d4ad097 commit 642bbbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sbin/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ getOpenJDKUpdateAndBuildVersion() {
168168
cd "${BUILD_CONFIG[WORKSPACE_DIR]}"
169169
}
170170

171+
addFixpathPatch() {
172+
# Fixpath patch required for JDK11u Windows aarch64 builds
173+
if [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" = "${JDK11_CORE_VERSION}" ] && [ "${ARCHITECTURE}" = "aarch64" ]; then
174+
wget https://github.com/microsoft/openjdk-aarch64/releases/download/fp-1.0/fixpath.exe --output-document "${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[WORKING_DIR]}/${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}/fixpath.exe"
175+
fi
176+
}
177+
178+
171179
patchFreetypeWindows() {
172180
# Allow freetype 2.8.1 to be built for JDK8u with Visual Studio 2017 (see https://github.com/openjdk/jdk8u-dev/pull/3#issuecomment-1087677766).
173181
# Don't apply the patch for OpenJ9 (OpenJ9 doesn't need the patch and, technically, it should only be applied for version 2.8.1).
@@ -1794,6 +1802,7 @@ configureWorkspace
17941802
echo "build.sh : $(date +%T) : Initiating build ..."
17951803
getOpenJDKUpdateAndBuildVersion
17961804
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then
1805+
addFixpathPatch
17971806
patchFreetypeWindows
17981807
fi
17991808
configureCommandParameters

0 commit comments

Comments
 (0)