]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Disable unwanted code for --with-libstdcxx-zoneinfo=no
authorJonathan Wakely <jwakely@redhat.com>
Sat, 14 Jan 2023 13:39:48 +0000 (13:39 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 14 Jan 2023 18:06:07 +0000 (18:06 +0000)
commitc47dcb95666ce0b48f0ff09aa99483fd12df8714
treecdc2ff3bbed44f0ac284fefdd553b408de0961ac
parent559993b85744ae09d33eedb1cb062392ac482f94
libstdc++: Disable unwanted code for --with-libstdcxx-zoneinfo=no

This allows most of the tzdb functionality to be disabled by
configuring with --with-libstdcxx-zoneinfo=no. This might be desirable
for small targets that don't need the time zone support.

libstdc++-v3/ChangeLog:

* src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
loading tzdb.
* testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
effective target.
* testsuite/std/time/tzdb_list/1.cc: Likewise.
libstdc++-v3/src/c++20/tzdb.cc
libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc
libstdc++-v3/testsuite/std/time/tzdb_list/1.cc