Replies: 1 comment
-
If we were building Meson today from scratch, I'd probably opt for setting I'd be perfectly happy to have a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I haven't found any discussions about this, so I would like to start one here.
meson
has been adding-D_FILE_OFFSET_BITS=64
implicitly be default in some build configurations for a long time now. Since there is already precedent for doing that, it raises the question whether_TIME_BITS=64
should get the same treatment.In short, setting
_TIME_BITS=64
on certain 32-bit Linux platforms (x86, arm) will widen time-related types (e.g.time_t
) and redirect function calls (e.g.time()
,stat()
) to variants that support 64-bit seconds on glibc 2.34 or later. It can only be use with-D_FILE_OFFSET_BITS=64
.There is a problem with it right off the bat, setting
_TIME_BITS=64
without_FILE_OFFSET_BITS=64
causes a compilation error, so projects using-U_FILE_OFFSET_BITS
to undo meson will run into that.Autoconf already ships related options:
AC_SYS_YEAR2038
,AC_SYS_YEAR2038_RECOMMENDED
.Some links:
Beta Was this translation helpful? Give feedback.
All reactions