[libc-commits] [libc] [libc] Make use of 32-bit time_t a config option (PR #102012)

Simon Tatham via libc-commits libc-commits at lists.llvm.org
Wed Aug 7 09:05:49 PDT 2024


statham-arm wrote:

That sounds reasonable to me. I've pushed a patch that implements this, I think.

I've flipped it round so that the `#define` is used for a 32-bit time_t. That way the common case (and hopefully more common as we approach Y2038) is the default one, without needing an extra command-line option.

And I've centralised the cmake code that decides on the size of time_t, so that the same variable is used to control both the command-line `#define` and the choice of output `time_t.h`.

https://github.com/llvm/llvm-project/pull/102012


More information about the libc-commits mailing list