[libcxx-commits] [libcxx] [libcxx] Fix build for glibc < 2.27 (PR #121893)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 7 03:55:40 PST 2025
philnik777 wrote:
> Android is still using glibc 2.17 on the host, but we're planning to move to musl. There are still some issues preventing us from doing so. We are not planning to upgrade glibc before the migration.
>
> Since this requires minimal effort to support (just a version macro check), I hope we can continue supporting older versions until it becomes genuinely difficult to maintain.
We already only claim support for glibc 2.24 and later and the Android bots are just happy with the patch. Also, A libc from 2012 seems a bit unreasonable to support IMO. Having support for half a dozen different libc implementations is already a strain and we don't need even more of that by supporting versions that are more than a decade old.
I'm also _very_ sceptical of "just a version macro check". These accumulate, and while one of them isn't much of a problem, all of them together are a burden to support.
https://github.com/llvm/llvm-project/pull/121893
More information about the libcxx-commits
mailing list