Re: Is detecting endianness at compile-time unworkable?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 30, 2018, 14:54 UTC
- Message-ID
- <xmqq600wkc4i.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <87wotdt649.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> And, as an aside, the reason we can't easily make it better ourselves is > because the build process for git.git doesn't have a facility to run > code to detect this type of stuff (the configure script is always > optional). So we can't just run this test ourselves.
It won't help those who cross-compile anyway. I thought we declared "we make a reasonable effort to guess the target endianness from the system header by inspecting usual macros, but will not aim to cover every system on the planet---instead there is a knob to tweak it for those on exotic platforms" last time we discussed this?