-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow external configuration of endianness in R package build #10642
Conversation
Noticed a couple failures here. In looking into them, am curious does this go back to On a somewhat related note, it appears |
Added
This warning causes the R build to fail: https://github.com/dmlc/xgboost/actions/runs/10152770673/job/28074838045?pr=10642 |
…0642) * Allow users to set endianness in R build * Run `autoreconf -vi` * Don't use :BOOL suffix * Use AC_CONFIG_HEADERS --------- Co-authored-by: Hyunsu Cho <[email protected]> Co-authored-by: Philip Hyunsu Cho <[email protected]>
…ild (#10642) (#10645) * Allow external configuration of endianness in R package build (#10642) * Allow users to set endianness in R build * Run `autoreconf -vi` * Don't use :BOOL suffix * Use AC_CONFIG_HEADERS --------- Co-authored-by: Hyunsu Cho <[email protected]> Co-authored-by: Philip Hyunsu Cho <[email protected]> * Re-run roxygen2 --------- Co-authored-by: jakirkham <[email protected]>
Thanks Hyunsu! 🙏 |
Rework R package's
configure.ac
to accept and use theUSE_LITTLE_ENDIAN
environment variable. If set, this allows overriding the endianness used for the R package built. If not set, then this falls back toautoconf
's own endianness check. If it is still not clear what endianness to use, the build then errors and asks for it to be specified.For more context conda-forge builds have needed to patch out the existing configuration logic for endianness and set their own value as the current check isn't always correct. This would allow the conda-forge builds to drop that patch and simply specify
USE_LITTLE_ENDIAN
when needed (a more maintainable solution).