Cross compilation discussion
erik.joelsson at oracle.com
erik.joelsson at oracle.com
Mon Dec 11 13:56:39 UTC 2023
On 12/11/23 01:24, Andrew Haley wrote:
> Maybe, or at least fails the principle of least surprise. I think I may
> be missing something important here: what is the downside of treating a
> build as a cross compilation? Is it simply that more work has to be done,
> or something else?
>
Yes, the drawback is that significantly more work has to be done. If we
cannot use the target JDK as "build JDK" to run tools like jmod and
jlink, we need to either supply a build JDK or produce one during the
build. This means building minimally viable JDK for the build platform,
including libjvm and some other native libs and launchers.
/Erik
More information about the build-dev
mailing list