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:
parent
0f9060761c
commit
74f29c7727
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue