Fix arm architecture translation issue (#809)

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>
This commit is contained in:
Peter Nied 2021-06-04 11:26:46 -05:00 committed by GitHub
parent 0f9060761c
commit 74f29c7727
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;
} }
} }