RFR: 8366777: Build fails unknown pseudo-op with old AS on linux-aarch64
Erik Joelsson
erikj at openjdk.org
Wed Sep 3 16:45:42 UTC 2025
On Wed, 3 Sep 2025 14:51:31 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Anyhow, I believe if non-standard toolchain is involved failing the build is far better behavior than silently disabling SVE!
A common pattern for optionally supported features is to add an explicit `--enable/--disable` flag that takes 3 values: yes, no and auto, where the default is auto. There are numerous examples, but one is `--enable-precompiled-headers`. If you don't set it, it will be enabled if supported by the toolchain, otherwise not. If you explicitly enable it, then configure will fail if the toolchain doesn't support it. Perhaps that would be a good fit in this case?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27073#issuecomment-3249988832
More information about the build-dev
mailing list