8308246: PPC64le build broken after JDK-8304913

Reviewed-by: shade, mbaesken
This commit is contained in:
Martin Doerr 2023-05-17 15:10:46 +00:00
parent 5763be7267
commit 64f6681cc7

View File

@ -50,8 +50,9 @@ public record Platform(OperatingSystem os, Architecture arch) {
OperatingSystem os = OperatingSystem.valueOf(osName.toUpperCase(Locale.ROOT));
archName = platformString.substring(index + 1);
// Alias architecture "amd64" to "X64"
// Alias architecture names, if needed
archName = archName.replace("amd64", "X64");
archName = archName.replace("ppc64le", "PPC64");
Architecture arch = Architecture.valueOf(archName.toUpperCase(Locale.ROOT));
return new Platform(os, arch);