[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a59de2bf 2/6: Forestall a ccache issue
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a59de2bf 2/6: Forestall a ccache issue |
Date: |
Tue, 21 Feb 2023 13:13:19 -0500 (EST) |
branch: master
commit a59de2bf85473fffdefcadcecaaaa703a50e6b87
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Forestall a ccache issue
---
wx_test_paste_census.cpp | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/wx_test_paste_census.cpp b/wx_test_paste_census.cpp
index 1abbbbf5..772c547e 100644
--- a/wx_test_paste_census.cpp
+++ b/wx_test_paste_census.cpp
@@ -23,6 +23,7 @@
#include "assert_lmi.hpp"
#include "bourn_cast.hpp"
+#include "calendar_date.hpp"
#include "data_directory.hpp"
#include "mvc_controller.hpp"
#include "ssize_lmi.hpp"
@@ -192,8 +193,14 @@ LMI_WX_TEST_CASE(paste_census)
{
// Update this file (and the webpage cited above) in 2040--see:
// https://lists.nongnu.org/archive/html/lmi/2020-06/msg00037.html
- // __DATE__[9] is second-to-last digit of a four-digit year
- static_assert('4' != __DATE__[9]);
+ // If ccache is used with 'CCACHE_SLOPPINESS=time_macros' to
+ // prevent this file from being recompiled, then this static
+ // assertion [spaces inserted in macro name to pass concinnity
+ // test]:
+ // // _ _ DATE _ _[9] is second-to-last digit of a four-digit year
+ // static_assert('4' != _ _ DATE _ _[9]);
+ // won't work, so use this non-static assertion instead:
+ LMI_ASSERT(calendar_date().year() < 2040);
// The column titles are the user-visible strings corresponding to the
// internal column names actually used in the census data below.
- [lmi-commits] [lmi] master updated (89b7e1eb -> 3f177433), Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master 613f9fcf 3/6: Make ccache ignore date and time macros, Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master f68f6e4d 4/6: Filter out ccache commands, Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master 3f177433 6/6: Assert a precondition, Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master a1b50b22 5/6: Use ccache for lmi code, Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master 7c0e38bd 1/6: Establish a shared ccache directory, Greg Chicares, 2023/02/21
- [lmi-commits] [lmi] master a59de2bf 2/6: Forestall a ccache issue,
Greg Chicares <=