Fix arm architecture translation issue (#809) (#927)

Found when attempting to build on an `arm64` machine when I recieved an error message below.  Root cause is that string equality in java cannot be done with the `==` sign.

```
unknown architecture [arm64] for jdk [provisioned_runtime], must be one of [aarch64, x64]
```

Signed-off-by: Peter Nied <petern@amazon.com>

Co-authored-by: Peter Nied <petern@amazon.com>
This commit is contained in:
Rabi Panda 2021-07-02 15:19:44 -07:00 committed by GitHub
parent 3c563fedd9
commit 5d07c256f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public class Jdk implements Buildable, Iterable<File> {
/* /*
* Jdk uses aarch64 from ARM. Translating from arm64 to aarch64 which Jdk understands. * Jdk uses aarch64 from ARM. Translating from arm64 to aarch64 which Jdk understands.
*/ */
return architecture == "arm64" ? "aarch64" : architecture; return "arm64".equals(architecture) ? "aarch64" : architecture;
} }
} }