RFR: 8264650: Cross-compilation to macos/aarch64 [v2]
Anton Kozlov
akozlov at openjdk.java.net
Fri Apr 2 19:24:29 UTC 2021
On Fri, 2 Apr 2021 16:23:05 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
>> make/autoconf/flags.m4 line 269:
>>
>>> 267:
>>> 268: if test "x$OPENJDK_TARGET_OS" = xmacosx &&
>>> 269: test "x$OPENJDK_TARGET_CPU" = xaarch64; then
>>
>> Thank you for getting on this!
>> For symmetry, and to enable cross compilation on both directions, can we add the necessary flag for x64 too?
>>
>> Also, I doubt it matters much, but we could also only set these flags if COMPILE_TYPE=cross.
>
> Thinking again, it doesn't hurt to be explicit about this. Better always set these flags to avoid surprises.
Cool, I haven't thought it is possible, although clearly it should be :) Thanks! Fixed by always setting the flag. I also rely on Github Action to check this with Xcode 11.3.1, it seems to be fine https://github.com/AntonKozlov/jdk/runs/2256008843
-------------
PR: https://git.openjdk.java.net/jdk/pull/3325
More information about the build-dev
mailing list