Proposal: Separate build and target architecture in the build scripts #3648
Labels
enhancement
Issues that enhance the code or documentation of the repo in any way
macos
Issues that affect or relate to the MAC OS
Summary
To separate the concepts of build (verb) and target architectures in the build scripts.
Value
This change will:
Glossary
"Build architecture" - The architecture of the machine we're building a JDK binary on.
"Target architecture" - The architecture of the machine we're building a JDK binary for.
Details
In this issue for Mac x64, we discovered that the target architecture is, in many ways, conflated with the build architecture.
We added a temporary work-around for the issue here, but in the long run we need to be considering these architectures separately in order to provide a robust framework for generating cross-compiled builds.
A good place to start is this line of code. We should make sure this variable is suitably renamed (build_arch), and is never accidentally used for the target architecture. The target architecture should be set by the job parameter, which should also be renamed (e.g. TARGET_ARCH) for clarity.
Useful information.
The text was updated successfully, but these errors were encountered: