summaryrefslogtreecommitdiff
path: root/src/Logging.hpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2021-06-18 20:47:17 +0200
committerJoel Rosdahl <joel@rosdahl.net>2021-06-19 19:58:58 +0200
commit4eec5d64e3bbf7aecbbf8fc58c9f44563fda187c (patch)
tree14a41e4b12a461d3968c22d4af1cad7a4d035690 /src/Logging.hpp
parentce8c65312768aa19d9691e1903caec3851a4608d (diff)
downloadccache-4eec5d64e3bbf7aecbbf8fc58c9f44563fda187c.tar.gz
Require C++14-compatible compiler to build ccache
Ccache 4.0 introduced a requirement on a C++11-compatible compiler. The language version was primarily chosen to support CentOS 7. The time has now come to bump to C++14, to among other things get access to generic lambda expressions and improved constexpr functions. Another side effect is to get usable support for std::regex due to requiring a newer GCC than 4.8 which lacks such support.
Diffstat (limited to 'src/Logging.hpp')
-rw-r--r--src/Logging.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Logging.hpp b/src/Logging.hpp
index 38553f25..5c780ec1 100644
--- a/src/Logging.hpp
+++ b/src/Logging.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2020 Joel Rosdahl and other contributors
+// Copyright (C) 2020-2021 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
@@ -39,13 +39,12 @@
} while (false)
// Log a message (plus a newline character) described by a format string with at
-// least one placeholder. `format` is compile-time checked if CMAKE_CXX_STANDARD
-// >= 14.
+// least one placeholder. `format` is checked at compile time.
#define LOG(format_, ...) LOG_RAW(fmt::format(FMT_STRING(format_), __VA_ARGS__))
// Log a message (plus a newline character) described by a format string with at
// least one placeholder without flushing and with a reused timestamp. `format`
-// is compile-time checked if CMAKE_CXX_STANDARD >= 14.
+// is checked at compile time.
#define BULK_LOG(format_, ...) \
do { \
if (Logging::enabled()) { \