commit:     efe2c28cf7a7b9f3a4a26c4fe4057e62de81deb3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  1 08:58:06 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov  1 09:03:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efe2c28c

toolchain.eclass: Add USE=time64 to 14.2.1_p20241026 and newer

Acked-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/toolchain.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 805fc30952ce..e464f8c53972 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -330,6 +330,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
        # and 
https://rust-gcc.github.io/2023/04/24/gccrs-and-gcc13-release.html for why
        # it was disabled in 13.
        tc_version_is_at_least 14.0.0_pre20230423 ${PV} && IUSE+=" rust" 
TC_FEATURES+=( rust )
+       tc_version_is_at_least 14.2.1_p20241026 ${PV} && IUSE+=" time64"
 fi
 
 if tc_version_is_at_least 10; then
@@ -1060,6 +1061,9 @@ toolchain_src_configure() {
 
        downgrade_arch_flags
        gcc_do_filter_flags
+       if tc_version_is_at_least 14.2.1_p20241026 ${PV}; then
+               append-cppflags "-D_GENTOO_TIME64_FORCE=$(usex time64 1 0)"
+       fi
 
        if ! tc_version_is_at_least 11 && [[ $(gcc-major-version) -ge 12 ]] ; 
then
                # https://gcc.gnu.org/PR105695 (bug #849359)

Reply via email to