RFR: 8264650: Cross-compilation to macos/aarch64 [v2]
Erik Joelsson
erikj at openjdk.java.net
Fri Apr 2 21:46:27 UTC 2021
On Fri, 2 Apr 2021 19:18:58 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
>> Please review adding necessary flags for cross-compilation on macos/x86 targeting macos/aarch64.
>>
>> All CFLAGS, CXXFLAGS, LDFLAGS need target CPU flag `-arch arm64`.
>> This patch adds the flag along e.g `-m64`.
>>
>> Tested:
>> * cross-compilation
>> * macos/x86 -> macos/aarch64: configure --openjdk-target=aarch64-apple-darwin
>> * macos/aarch64 -> macos/x86: configure --openjdk-target=x86_64-apple-darwin
>> * native compilation:
>> * macos/aarch64
>> * macos/x86
>
> Anton Kozlov has updated the pull request incrementally with one additional commit since the last revision:
>
> Add both ways cross-compilation
Marked as reviewed by erikj (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3325
More information about the build-dev
mailing list