1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-28 19:43:52 +00:00
David Yip 288ea11534 Use _FILE_OFFSET_BITS=64 when building tests on Linux 32-bit systems
When cross-compiling spdlog from x86-64 to armhf, I ran spdlog-utests
via qemu-arm and noticed that the "daily_logger rotate" test was failing
because count_files always returned zero.

Investigation of count_files revealed that readdir was returning nullptr
immediately and setting errno to 75, i.e. "value too large for defined
data type".  I suspected this had something to do with some 64 vs.
32-bit thing, so I added _FILE_OFFSET_BITS=64 to the build and that
seems to have made readdir happy.

It might be safe to add _FILE_OFFSET_BITS=64 for all Linux builds, but
it only seems to be necessary for the 32-bit case (which is a pretty
small audience these days -- I'm only building for armhf to target a
Raspberry Pi 3 running Raspbian, which runs in 32-bit mode).
2019-10-28 13:23:01 -05:00
..
2019-06-04 16:35:34 +03:00
2019-06-04 16:35:34 +03:00
2019-06-04 16:35:34 +03:00
2015-05-15 20:30:37 +03:00
2019-10-20 17:40:56 +03:00
2019-10-20 17:40:56 +03:00
2019-08-28 15:59:58 +03:00
2019-10-25 16:20:24 +03:00
2019-10-20 17:40:56 +03:00
2019-06-28 00:48:30 +03:00
2019-10-20 17:40:56 +03:00
2019-10-25 16:05:12 +03:00
2019-10-20 17:40:56 +03:00
2019-10-20 17:40:56 +03:00
2019-09-05 01:25:00 +03:00
2019-09-21 15:49:54 +03:00
2019-10-19 09:42:38 +02:00
2019-09-23 12:38:19 +03:00
2019-10-20 17:55:13 +03:00
2019-09-15 18:34:29 +03:00