]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
18 months agorefactor: fs::path-ify util::is_dev_null_path
Joel Rosdahl [Sun, 14 Jan 2024 09:36:10 +0000 (10:36 +0100)] 
refactor: fs::path-ify util::is_dev_null_path

(cherry picked from commit 470302017003ab3d831026ae092aeb1fee8ecf5d)

18 months agochore: Remove time_of_compilation in favor of time_of_invocation
Joel Rosdahl [Tue, 9 Jan 2024 20:28:34 +0000 (21:28 +0100)] 
chore: Remove time_of_compilation in favor of time_of_invocation

We can compare source/include files against time of invocation just as
well; source files shouldn't be modified when ccache has started anyway.

(cherry picked from commit b982306349e5ba3229d1ea9c14ff4ce2efb18233)

18 months agofix: Avoid crash for -arch as last compiler option
Joel Rosdahl [Sat, 6 Jan 2024 19:21:44 +0000 (20:21 +0100)] 
fix: Avoid crash for -arch as last compiler option

The bug has been present since 89aa39f394e0fa4935e6cadd7184e372a37f9506
(ccache 3.3).

Fixes #1377.

(cherry picked from commit 432e1f5178631aec14a76f8be82c7e090c45bc69)

19 months agochore: Update authors v4.9
Joel Rosdahl [Sat, 30 Dec 2023 15:08:02 +0000 (16:08 +0100)] 
chore: Update authors

19 months agochore: Update NEWS
Joel Rosdahl [Sat, 30 Dec 2023 15:05:19 +0000 (16:05 +0100)] 
chore: Update NEWS

19 months agoci: Add typos job
Joel Rosdahl [Sat, 30 Dec 2023 09:27:40 +0000 (10:27 +0100)] 
ci: Add typos job

19 months agoci: Bump to codespell 2.2.6
Joel Rosdahl [Sat, 30 Dec 2023 09:25:16 +0000 (10:25 +0100)] 
ci: Bump to codespell 2.2.6

19 months agofeat: Add support for undocumented GCC/Clang --include option
Joel Rosdahl [Fri, 22 Dec 2023 12:41:17 +0000 (13:41 +0100)] 
feat: Add support for undocumented GCC/Clang --include option

Note: Clang accepts a concatenated argument (--includefoo.h) but GCC
does not.

Closes #1324.

19 months agobump: Upgrade to cpp-httplib 0.14.3
Joel Rosdahl [Fri, 22 Dec 2023 12:37:24 +0000 (13:37 +0100)] 
bump: Upgrade to cpp-httplib 0.14.3

19 months agochore: Remove unused local variable
Joel Rosdahl [Mon, 18 Dec 2023 20:08:26 +0000 (21:08 +0100)] 
chore: Remove unused local variable

19 months agochore: Add debug log when finding -frecord-gcc-switches
Joel Rosdahl [Sun, 17 Dec 2023 21:00:04 +0000 (22:00 +0100)] 
chore: Add debug log when finding -frecord-gcc-switches

19 months agobuild: Set both C/CXX launchers if either is set (#1343)
Rafael Kitover [Sat, 16 Dec 2023 15:19:33 +0000 (07:19 -0800)] 
build: Set both C/CXX launchers if either is set (#1343)

Add cmake/EnableCcache.cmake and load it from the main file.

Make the standard cmake variables CMAKE_CXX_COMPILER_LAUNCHER and
CMAKE_C_COMPILER_LAUNCHER consistent with each other if either is not
set.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
19 months agofeat: Support st_Xtimensec fields in struct stat
Joel Rosdahl [Sat, 16 Dec 2023 09:59:20 +0000 (10:59 +0100)] 
feat: Support st_Xtimensec fields in struct stat

This increases file timestamp precision on some BSD-based OSes.

Closes #1369.

19 months agofix: Generalize expansion of remote storage URLs with sharding
Joel Rosdahl [Fri, 15 Dec 2023 19:01:49 +0000 (20:01 +0100)] 
fix: Generalize expansion of remote storage URLs with sharding

Fixes #1321.

19 months agofix: Correct util::LockFile sleep time constants
Joel Rosdahl [Wed, 13 Dec 2023 20:10:24 +0000 (21:10 +0100)] 
fix: Correct util::LockFile sleep time constants

Regression in 930d3b67a49f.

19 months agorefactor: Replace util::is_absolute_path with fs::path::is_absolute
Joel Rosdahl [Sat, 9 Dec 2023 12:44:17 +0000 (13:44 +0100)] 
refactor: Replace util::is_absolute_path with fs::path::is_absolute

19 months agochore: Fix some -Wconversion warnings
Joel Rosdahl [Mon, 4 Dec 2023 19:15:15 +0000 (20:15 +0100)] 
chore: Fix some -Wconversion warnings

19 months agofix: Handle -Xclang -ast-dump et al correctly
Joel Rosdahl [Sun, 3 Dec 2023 20:11:33 +0000 (21:11 +0100)] 
fix: Handle -Xclang -ast-dump et al correctly

Fixes #1356.

19 months agofeat: Improve processing of input file arguments
Joel Rosdahl [Sat, 2 Dec 2023 11:24:07 +0000 (12:24 +0100)] 
feat: Improve processing of input file arguments

Instead of checking if a non-option argument has a known file extension,
switch to the better heuristic of checking if the file exists or not: if
it doesn't exist it isn't an input argument.

20 months agofix: Use MSVC logic for clang-cl when handling precompiled header (#1365)
DarkShadow44 [Mon, 27 Nov 2023 19:34:30 +0000 (20:34 +0100)] 
fix: Use MSVC logic for clang-cl when handling precompiled header (#1365)

20 months agochore: Improve typos configuration (#1358)
Viktor Szépe [Sun, 26 Nov 2023 17:16:29 +0000 (18:16 +0100)] 
chore: Improve typos configuration (#1358)

20 months agoci: Remove matrix.config from build.yaml (#1360)
Viktor Szépe [Sun, 26 Nov 2023 17:15:13 +0000 (18:15 +0100)] 
ci: Remove matrix.config from build.yaml (#1360)

20 months agoci: Split dependency installation step into two (#1359)
Viktor Szépe [Sun, 26 Nov 2023 15:55:56 +0000 (16:55 +0100)] 
ci: Split dependency installation step into two (#1359)

20 months agotest: Fix regex in direct.bash (#1357)
Viktor Szépe [Sun, 26 Nov 2023 15:52:55 +0000 (16:52 +0100)] 
test: Fix regex in direct.bash (#1357)

20 months agofix: Detect compiler from unresolved symlink with fallback
Joel Rosdahl [Thu, 23 Nov 2023 20:46:20 +0000 (21:46 +0100)] 
fix: Detect compiler from unresolved symlink with fallback

This is a generalization of the fix in PR #1348 for issue #1347.

20 months agochore: Remove obsolete Util::is_dir_separator
Joel Rosdahl [Tue, 21 Nov 2023 20:02:43 +0000 (21:02 +0100)] 
chore: Remove obsolete Util::is_dir_separator

20 months agochore: Remove superfluous #includes
Joel Rosdahl [Tue, 21 Nov 2023 19:40:54 +0000 (20:40 +0100)] 
chore: Remove superfluous #includes

20 months agofix: Detect symlink called clang-cl as clang-cl (#1348)
DarkShadow44 [Thu, 23 Nov 2023 20:26:31 +0000 (21:26 +0100)] 
fix: Detect symlink called clang-cl as clang-cl (#1348)

Fixes #1347.

20 months agofeat: Add support for clang --analyze (#1345)
Mikhail B [Mon, 20 Nov 2023 20:57:49 +0000 (15:57 -0500)] 
feat: Add support for clang --analyze (#1345)

21 months agofix: Devmode unused function warnings on new MSVC (#1342)
Rafael Kitover [Sun, 29 Oct 2023 08:33:09 +0000 (08:33 +0000)] 
fix: Devmode unused function warnings on new MSVC (#1342)

MSVC apparently has overrides for the two definitions of operator== in
unittest/test_util_string.cpp in the <utility> header, raising a warning
about them being local unused functions:

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4505?view=msvc-170

Disable this warning type in cmake/DevModeWarnings.cmake for MSVC.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
21 months agofeat: cmake -DOFFLINE=TRUE for offline builds (#1341)
Rafael Kitover [Sun, 29 Oct 2023 08:31:15 +0000 (08:31 +0000)] 
feat: cmake -DOFFLINE=TRUE for offline builds (#1341)

Add the cmake option OFFLINE, defaulting to the value of the standard
variable FETCHCONTENT_FULLY_DISCONNECTED, which is OFF by default, to
disable downloading anything from the internet.

When ON, set FETCHCONTENT_FULLY_DISCONNECTED to ON, ZSTD_FROM_INTERNET
to OFF and HIREDIS_FROM_INTERNET to OFF.

When downloading is OFF and either library is not found, throw an error
using find_package_handle_standard_args().

Add the option to INSTALL.md doc.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
21 months agofix: cmake -DSTATIC_LINK=ON on Linux/macOS (#1340)
Rafael Kitover [Sun, 29 Oct 2023 08:28:15 +0000 (08:28 +0000)] 
fix: cmake -DSTATIC_LINK=ON on Linux/macOS (#1340)

Make linking dependent libraries as static a hard requirement when
STATIC_LINK is ON, as opposed to the previous behavior of falling back
to dynamic libraries.

A side-effect of this is that if only a dynamic zstd/hiredis is
available on a system, it will not be found, and the download and build
code will be invoked to build a static version from the internet.

Add a general case to handle Linux, macOS and similar by linking
libgcc/libstdc++ statically on gcc/clang.

Move the code into cmake/StaticLinkSupport.cmake and include it from the
main file.

Fix #1330

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
21 months agofix: Mark -wrapper as too hard
Joel Rosdahl [Sun, 29 Oct 2023 07:28:07 +0000 (08:28 +0100)] 
fix: Mark -wrapper as too hard

See also #1339.

21 months agodocs: Improve language
Joel Rosdahl [Thu, 26 Oct 2023 17:07:44 +0000 (19:07 +0200)] 
docs: Improve language

21 months agorefactor: Use fs::weakly_canonical in prepare_debug_path
Joel Rosdahl [Mon, 23 Oct 2023 18:55:09 +0000 (20:55 +0200)] 
refactor: Use fs::weakly_canonical in prepare_debug_path

21 months agofix: Make handling of Clang config options more robust
Joel Rosdahl [Tue, 17 Oct 2023 19:36:35 +0000 (21:36 +0200)] 
fix: Make handling of Clang config options more robust

Closes #1335.

21 months agofix: Fix Windows is_absolute_path() crash on drive letter (#1338)
Martin Blanchard [Mon, 16 Oct 2023 19:06:47 +0000 (21:06 +0200)] 
fix: Fix Windows is_absolute_path() crash on drive letter (#1338)

21 months agofix: Fix sign-compare warning src/InodeCache.cpp on FreeBSD (#1331)
Philipp Storz [Mon, 16 Oct 2023 19:02:55 +0000 (21:02 +0200)] 
fix: Fix sign-compare warning src/InodeCache.cpp on FreeBSD (#1331)

As on FreeBSD 13.2 statfs.f_bavail is signed, InodeCache.cpp cannot be compiled
but gets a sign-compare warning:

  src/InodeCache.cpp:409:30: error: comparison of integers of different signs:
    'long' and 'unsigned long' [-Werror,-Wsign-compare]
      if (buf.f_bavail * 512 < k_min_fs_mib_left * 1024 * 1024) {
          ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.

The problem is avoided by using static_cast to uint64_t.

21 months agofix: Let DirEntry::size_on_disk return likely size on disk
Joel Rosdahl [Mon, 16 Oct 2023 17:33:31 +0000 (19:33 +0200)] 
fix: Let DirEntry::size_on_disk return likely size on disk

st_blocks in struct stat cannot be trusted for some filesystems that do
transparent compression or deduplication. For instance, ZFS can adjust
the block count some time in the future when compression is finished.

The only reasonable fix for this seems to be to just guess how much
space the file will take using st_size.

Fixes #1332.

21 months agofix: Bail out on too hard options -fmodules-ts and -fmodule-header
Joel Rosdahl [Wed, 4 Oct 2023 16:13:52 +0000 (18:13 +0200)] 
fix: Bail out on too hard options -fmodules-ts and -fmodule-header

Fixes #1333.

22 months agochore: Add entries to codespell allow list
Joel Rosdahl [Mon, 2 Oct 2023 19:38:14 +0000 (21:38 +0200)] 
chore: Add entries to codespell allow list

22 months agorefactor: Move Logging to util
Joel Rosdahl [Mon, 2 Oct 2023 19:06:20 +0000 (21:06 +0200)] 
refactor: Move Logging to util

22 months agorefactor: Move Win32Util::error_message to util
Joel Rosdahl [Mon, 2 Oct 2023 18:45:02 +0000 (20:45 +0200)] 
refactor: Move Win32Util::error_message to util

22 months agorefactor: Move Win32Util::argv_to_string to util
Joel Rosdahl [Mon, 2 Oct 2023 16:38:05 +0000 (18:38 +0200)] 
refactor: Move Win32Util::argv_to_string to util

22 months agorefactor: Move Win32Util::add_exe_suffix to util
Joel Rosdahl [Mon, 2 Oct 2023 16:32:56 +0000 (18:32 +0200)] 
refactor: Move Win32Util::add_exe_suffix to util

22 months agorefactor: Move Win32Util::get_last_ntstatus to util::DirEntry
Joel Rosdahl [Sun, 1 Oct 2023 08:26:49 +0000 (10:26 +0200)] 
refactor: Move Win32Util::get_last_ntstatus to util::DirEntry

util::DirEntry is the sole user of Win32Util::get_last_ntstatus.

22 months agorefactor: Move File to util::FileStream
Joel Rosdahl [Sun, 1 Oct 2023 08:23:18 +0000 (10:23 +0200)] 
refactor: Move File to util::FileStream

22 months agorefactor: Move NonCopyable to util
Joel Rosdahl [Sat, 30 Sep 2023 17:48:24 +0000 (19:48 +0200)] 
refactor: Move NonCopyable to util

22 months agorefactor: Move fmtmacros to util
Joel Rosdahl [Sat, 30 Sep 2023 17:46:24 +0000 (19:46 +0200)] 
refactor: Move fmtmacros to util

22 months agorefactor: Move Finalizer to util
Joel Rosdahl [Sat, 30 Sep 2023 17:40:33 +0000 (19:40 +0200)] 
refactor: Move Finalizer to util

22 months agorefactor: Move assertions to util
Joel Rosdahl [Thu, 28 Sep 2023 18:32:10 +0000 (20:32 +0200)] 
refactor: Move assertions to util

22 months agobump: Upgrade to BLAKE3 1.5.0
Joel Rosdahl [Thu, 28 Sep 2023 16:05:25 +0000 (18:05 +0200)] 
bump: Upgrade to BLAKE3 1.5.0

23 months agochore: Prepare for version 4.8.3
Joel Rosdahl [Tue, 29 Aug 2023 19:38:11 +0000 (21:38 +0200)] 
chore: Prepare for version 4.8.3

(cherry picked from commit 044558e647b49dbc8fc89b810a7d22f526101e6b)

23 months agobump: Upgrade to fmt 10.1.1
Joel Rosdahl [Tue, 29 Aug 2023 19:08:59 +0000 (21:08 +0200)] 
bump: Upgrade to fmt 10.1.1

23 months agofix: Exit more gracefully on invalid sharded remote storage URL
Joel Rosdahl [Tue, 29 Aug 2023 19:06:23 +0000 (21:06 +0200)] 
fix: Exit more gracefully on invalid sharded remote storage URL

As mentioned in #1321.

23 months agochore: Avoid linting suppression for Storage::~Storage
Joel Rosdahl [Sat, 26 Aug 2023 18:37:20 +0000 (20:37 +0200)] 
chore: Avoid linting suppression for Storage::~Storage

23 months agobump: Upgrade to cpp-httplib 0.14.0
Joel Rosdahl [Wed, 23 Aug 2023 17:15:55 +0000 (19:15 +0200)] 
bump: Upgrade to cpp-httplib 0.14.0

23 months agodocs: Mention that system_headers sloppiness is not supported for MSVC
Joel Rosdahl [Wed, 23 Aug 2023 17:06:35 +0000 (19:06 +0200)] 
docs: Mention that system_headers sloppiness is not supported for MSVC

Closes #1224.

23 months agofix: Fix bookkeeping of raw files
Joel Rosdahl [Fri, 18 Aug 2023 20:17:40 +0000 (22:17 +0200)] 
fix: Fix bookkeeping of raw files

Ccache 4.8-4.8.2 notes the size and count of raw files (written to the
cache if hard link or file clone mode is enabled) to a level 2 stats
file. However, the new cleanup algorithm (also introduced in 4.8)
assumes that all size/count statistics are placed in a level 1 stats
file. After a "ccache -c", the raw files will be "rediscovered" and
noted in level 1 stats files, thus duplicating bookkeeping in level 2
stats files, resulting in a too high cache size figure in "ccache -s".

To fix this, ccache will now:

- Note size/count of raw files in the proper level 1 stats file.
- When storing an entry on a cache miss, detect if the corresponding
  level 2 stats file has non-zero size/count statistics and propagate
  them to the level 1 stats file if so.
- Zero out files/count statistics for level 2 stats file on "ccache -c".

This means that the reported cache size will gradually correct itself
automatically. Alternatively, the user can run "ccache -c" to fix all
counters immediately.

Fixes #1320.

23 months agoenhance: Support updating stats file only if values have changed
Joel Rosdahl [Sat, 19 Aug 2023 11:09:10 +0000 (13:09 +0200)] 
enhance: Support updating stats file only if values have changed

23 months agorefactor: Improve name of LocalStorage::increment_level_2_counters
Joel Rosdahl [Fri, 18 Aug 2023 19:30:33 +0000 (21:30 +0200)] 
refactor: Improve name of LocalStorage::increment_level_2_counters

23 months agorefactor: Use LocalStorage::get_stats_file
Joel Rosdahl [Fri, 18 Aug 2023 19:29:14 +0000 (21:29 +0200)] 
refactor: Use LocalStorage::get_stats_file

23 months agochore: Fix grammar in comments
Joel Rosdahl [Fri, 18 Aug 2023 19:06:33 +0000 (21:06 +0200)] 
chore: Fix grammar in comments

23 months agochore: Avoid ccache:disable strings in ccache source code
Joel Rosdahl [Thu, 17 Aug 2023 16:14:37 +0000 (18:14 +0200)] 
chore: Avoid ccache:disable strings in ccache source code

A verbatim ccache:disable string disables ccache when compiling some
ccache sources, which is unnecessary.

23 months agobump: Upgrade to fmt 10.1.0
Joel Rosdahl [Mon, 14 Aug 2023 16:34:36 +0000 (18:34 +0200)] 
bump: Upgrade to fmt 10.1.0

23 months agorefactor: Move AtomicFile to core
Joel Rosdahl [Sat, 5 Aug 2023 13:22:06 +0000 (15:22 +0200)] 
refactor: Move AtomicFile to core

23 months agorefactor: Move ThreadPool to util
Joel Rosdahl [Sat, 5 Aug 2023 13:13:47 +0000 (15:13 +0200)] 
refactor: Move ThreadPool to util

23 months agorefactor: fs::path-ify util::traverse_directory
Joel Rosdahl [Sat, 5 Aug 2023 10:45:54 +0000 (12:45 +0200)] 
refactor: fs::path-ify util::traverse_directory

23 months agorefactor: fs::path-ify LockFile
Joel Rosdahl [Sat, 5 Aug 2023 09:01:09 +0000 (11:01 +0200)] 
refactor: fs::path-ify LockFile

23 months agorefactor: fs::path-ify LongLivedLockFileManager
Joel Rosdahl [Sat, 5 Aug 2023 08:59:00 +0000 (10:59 +0200)] 
refactor: fs::path-ify LongLivedLockFileManager

23 months agorefactor: Move Fd to util
Joel Rosdahl [Sat, 5 Aug 2023 08:49:04 +0000 (10:49 +0200)] 
refactor: Move Fd to util

23 months agorefactor: Remove use of mkdir(2)
Joel Rosdahl [Sat, 5 Aug 2023 07:12:34 +0000 (09:12 +0200)] 
refactor: Remove use of mkdir(2)

23 months agorefactor: Move TemporaryFile to util
Joel Rosdahl [Fri, 4 Aug 2023 06:47:40 +0000 (08:47 +0200)] 
refactor: Move TemporaryFile to util

23 months agoci: Time out jobs after 30 minutes
Joel Rosdahl [Fri, 4 Aug 2023 06:32:56 +0000 (08:32 +0200)] 
ci: Time out jobs after 30 minutes

The default is 360 minutes.

23 months agorefactor: fs::path-ify some util file functions
Joel Rosdahl [Fri, 4 Aug 2023 07:03:31 +0000 (09:03 +0200)] 
refactor: fs::path-ify some util file functions

23 months agorefactor: fs::path-ify TemporaryFile
Joel Rosdahl [Fri, 4 Aug 2023 05:57:25 +0000 (07:57 +0200)] 
refactor: fs::path-ify TemporaryFile

23 months agorefactor: fs::path-ify core::ensure_dir_exists
Joel Rosdahl [Thu, 3 Aug 2023 17:24:41 +0000 (19:24 +0200)] 
refactor: fs::path-ify core::ensure_dir_exists

23 months agotest: Fix DirEntry unit tests for Windows mingw64
Joel Rosdahl [Fri, 4 Aug 2023 15:02:12 +0000 (17:02 +0200)] 
test: Fix DirEntry unit tests for Windows mingw64

23 months agochore: Fix unit test build after d8b654a30ca8
Joel Rosdahl [Thu, 3 Aug 2023 12:04:44 +0000 (14:04 +0200)] 
chore: Fix unit test build after d8b654a30ca8

23 months agofeat: Rewrite path after -Xclang -include to relative (#1318)
Jiulong Wang [Thu, 3 Aug 2023 12:01:23 +0000 (05:01 -0700)] 
feat: Rewrite path after -Xclang -include to relative (#1318)

cmake may generate both -include and -include-pch. Example:

c++ ... -Xclang -include-pch -Xclang /abs/path/cmake_pch.hxx.pch
        -Xclang -include -Xclang /abs/path/cmake_pch.hxx ...

Both paths needs to be converted to relative path if CCACHE_BASEDIR is
set for better cache hit rate in some CI systems.

23 months agorefactor: Remove dependency on core from util
Joel Rosdahl [Thu, 3 Aug 2023 11:37:25 +0000 (13:37 +0200)] 
refactor: Remove dependency on core from util

23 months agofeat: Include maximum size/files in --print-stats
Joel Rosdahl [Thu, 3 Aug 2023 11:24:32 +0000 (13:24 +0200)] 
feat: Include maximum size/files in --print-stats

New output:

- max_cache_size_kibibyte: maximum size of local storage in KiB (0 for
  no limit)
- max_files_in_cache: maximum number of files in local storage (0 for no
  limit)

Closes #1315.

23 months agorefactor: fs::path-ify ignore_header_paths and related functions
Joel Rosdahl [Thu, 3 Aug 2023 06:44:21 +0000 (08:44 +0200)] 
refactor: fs::path-ify ignore_header_paths and related functions

2 years agobump: Upgrade to fmt 8a4bec5cf53387356738a06ba0cf4fdf086241ae (10.0.0+)
Joel Rosdahl [Wed, 2 Aug 2023 15:20:22 +0000 (17:20 +0200)] 
bump: Upgrade to fmt 8a4bec5cf53387356738a06ba0cf4fdf086241ae (10.0.0+)

2 years agorefactor: fs::path-ify is_ccache_executable
Joel Rosdahl [Wed, 2 Aug 2023 11:01:38 +0000 (13:01 +0200)] 
refactor: fs::path-ify is_ccache_executable

2 years agorefactor: Rename and improve Stat class to util::DirEntry
Joel Rosdahl [Mon, 31 Jul 2023 17:12:30 +0000 (19:12 +0200)] 
refactor: Rename and improve Stat class to util::DirEntry

2 years agorefactor: Move core/wincompat.hpp to util
Joel Rosdahl [Thu, 27 Jul 2023 20:05:27 +0000 (22:05 +0200)] 
refactor: Move core/wincompat.hpp to util

2 years agorefactor: Remove Stat::OnError::throw_error
Joel Rosdahl [Thu, 27 Jul 2023 17:11:09 +0000 (19:11 +0200)] 
refactor: Remove Stat::OnError::throw_error

This is in preparation for moving the Stat class to util where we don't
want to know about core::Error.

2 years agorefactor: Move Util::traverse to util
Joel Rosdahl [Thu, 27 Jul 2023 13:37:10 +0000 (15:37 +0200)] 
refactor: Move Util::traverse to util

2 years agorefactor: Move Util::send_to_fd to core
Joel Rosdahl [Tue, 25 Jul 2023 19:43:15 +0000 (21:43 +0200)] 
refactor: Move Util::send_to_fd to core

2 years agochore: Tweak documentation related to debug level
Joel Rosdahl [Wed, 2 Aug 2023 11:35:49 +0000 (13:35 +0200)] 
chore: Tweak documentation related to debug level

2 years agofeat: Allow specifying debug level (#1312)
dsilakov [Wed, 2 Aug 2023 11:24:49 +0000 (14:24 +0300)] 
feat: Allow specifying debug level (#1312)

Allow specifying debug level via a debug_level option or CCACHE_DEBUGLEVEL
environment variable.

With debug_level=2 (default), ccache behavior's in debug mode is not changed.

With debug_level=1, ccache will only dump *.ccache-log files (and not the
*input* ones). This is useful for getting per-file caching results.

2 years agofix: Work around GCC 12.3 bug 109241
Joel Rosdahl [Tue, 1 Aug 2023 10:30:12 +0000 (12:30 +0200)] 
fix: Work around GCC 12.3 bug 109241

See also #1289.

2 years agorefactor: Remove superfluous util:: qualifications
Joel Rosdahl [Tue, 25 Jul 2023 06:55:14 +0000 (08:55 +0200)] 
refactor: Remove superfluous util:: qualifications

2 years agobump: Upgrade to xxHash 0.8.2
Joel Rosdahl [Mon, 24 Jul 2023 17:18:05 +0000 (19:18 +0200)] 
bump: Upgrade to xxHash 0.8.2

Closes #1085.

2 years agorefactor: Improve util::write_fd usage
Joel Rosdahl [Mon, 24 Jul 2023 13:29:37 +0000 (15:29 +0200)] 
refactor: Improve util::write_fd usage

2 years agorefactor: Improve util::read_file usage
Joel Rosdahl [Mon, 24 Jul 2023 11:51:42 +0000 (13:51 +0200)] 
refactor: Improve util::read_file usage

2 years agorefactor: Improve util::read_fd usage
Joel Rosdahl [Sun, 23 Jul 2023 14:53:25 +0000 (16:53 +0200)] 
refactor: Improve util::read_fd usage

2 years agoenhance: Add util::read_fd variant that returns all data at once
Joel Rosdahl [Sun, 23 Jul 2023 06:50:56 +0000 (08:50 +0200)] 
enhance: Add util::read_fd variant that returns all data at once

2 years agorefactor: Switch to tl::expected instead of nonstd::expected
Joel Rosdahl [Thu, 20 Jul 2023 08:30:06 +0000 (10:30 +0200)] 
refactor: Switch to tl::expected instead of nonstd::expected