]>
git.ipfire.org Git - thirdparty/ccache.git/log
Joel Rosdahl [Thu, 26 Jun 2025 19:16:57 +0000 (21:16 +0200)]
test: Add test for tricky preprocessed cache hit case
See PR #1594.
Joel Rosdahl [Mon, 9 Jun 2025 17:55:23 +0000 (19:55 +0200)]
feat: Improve logging for manifest lookup
Joel Rosdahl [Mon, 9 Jun 2025 15:08:25 +0000 (17:08 +0200)]
build: Use bundled fmt if DEPS=DOWNLOAD as documented
Joel Rosdahl [Mon, 9 Jun 2025 15:06:44 +0000 (17:06 +0200)]
feat: Log URLs requested by http backend
Joel Rosdahl [Sat, 7 Jun 2025 19:16:30 +0000 (21:16 +0200)]
fix: Detect cc/c++ hard link to clang/clang++ before gcc/g++
Apparently clang/clang++ can be gcc/g++ in addition to cc/c++, at least
on some macOS versions, so detect clang hard link before gcc since the
other way around (gcc installed as an alias of clang) seems less likely.
Fixes #1597.
Joel Rosdahl [Fri, 30 May 2025 16:33:28 +0000 (18:33 +0200)]
ci: Remove jobs for soon to be removed windows-2019 runner
Joel Rosdahl [Sun, 25 May 2025 17:53:25 +0000 (19:53 +0200)]
chore: Tweak Clang CUDA code slightly
Joel Rosdahl [Sun, 25 May 2025 17:52:44 +0000 (19:52 +0200)]
chore: Fix source file headers
Joel Rosdahl [Sat, 3 May 2025 08:20:30 +0000 (10:20 +0200)]
chore: Clean up and modernize dockerfiles
R43Qi8krC [Thu, 29 May 2025 09:41:24 +0000 (17:41 +0800)]
feat: Support -x cu and -x cuda in Clang CUDA mode (#1593)
Gregor Jasny [Sun, 25 May 2025 13:35:53 +0000 (15:35 +0200)]
ci: Use CodeQL v3 (#1592)
This workflow throws an deprecation warning right now:
CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
R43Qi8krC [Sun, 25 May 2025 13:33:08 +0000 (21:33 +0800)]
feat: Add support for Clang compiling CUDA code (#1577)
Joel Rosdahl [Sat, 3 May 2025 08:40:16 +0000 (10:40 +0200)]
chore: Update NEWS
(cherry picked from commit
a50f01935030e46fd6f35184ba7b1f11105967b7 )
Joel Rosdahl [Thu, 1 May 2025 15:22:15 +0000 (17:22 +0200)]
ci: Disable testing for Windows MSYS2 mingw64 clang
Clang warns about doctest's include of ciso646:
In file included from D:/a/ccache/ccache/unittest/main.cpp:26:
In file included from D:/a/ccache/ccache/build/_deps/doctest-src/doctest/doctest.h:499:
D:/a/_temp/msys64/mingw64/include/c++/15.1.0/ciso646:46:4: error: "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror,-W#warnings]
46 | # warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros"
| ^
1 error generated.
See also doctest issue 900.
Joel Rosdahl [Mon, 28 Apr 2025 20:01:35 +0000 (22:01 +0200)]
build: Adapt to doctest 2.4.12
Apparently doctest 2.4.12 has introduced some backward incompatibility
that affects our unit tests, so adapt accordingly.
Fixes #1589.
Joel Rosdahl [Wed, 23 Apr 2025 18:20:33 +0000 (20:20 +0200)]
fix: Don't swallow -Xpreprocessor -fopenmp
This fixes regression in
bea737780727e751a8193fc80c83c7c072b8048e
Fixes #1586.
Joel Rosdahl [Wed, 23 Apr 2025 17:23:26 +0000 (19:23 +0200)]
bump: Upgrade to hiredis 1.3.0
Joel Rosdahl [Wed, 23 Apr 2025 17:22:03 +0000 (19:22 +0200)]
bump: Upgrade to BLAKE3 1.8.2
Joel Rosdahl [Wed, 23 Apr 2025 17:16:24 +0000 (19:16 +0200)]
chore: Split util::split_once into util::split_once{,_to_views}
The util::split_once(std::string&&, char) version is a bit overly smart
in that it returns std::string instead of std::string_view for a
temporary std::string input. To reduce the risk for surprises, introduce
a util::split_once_into_views so that input lifetime is indicated in the
method name instead.
Joel Rosdahl [Sat, 19 Apr 2025 18:35:04 +0000 (20:35 +0200)]
chore: Clean up profiling_gcc_10+ test suite
Joel Rosdahl [Sat, 19 Apr 2025 18:34:02 +0000 (20:34 +0200)]
test: Silence benign compiler warning in the profiling_gcc_10+ suite
Joel Rosdahl [Sat, 19 Apr 2025 18:30:01 +0000 (20:30 +0200)]
chore: Fix some Clang-Tidy warnings
Joel Rosdahl [Tue, 1 Apr 2025 19:45:05 +0000 (21:45 +0200)]
chore: Build with -Wextra-semi/-Wextra-semi-stmt and fix issues
Joel Rosdahl [Mon, 31 Mar 2025 18:04:16 +0000 (20:04 +0200)]
feat: Log which result entry matched in manifest
Joel Rosdahl [Sun, 30 Mar 2025 09:08:30 +0000 (11:08 +0200)]
chore: Log usage of cmd_args temporary file earlier
Joel Rosdahl [Sun, 30 Mar 2025 09:08:21 +0000 (11:08 +0200)]
feat: Improve logging of process exit
Joel Rosdahl [Sun, 30 Mar 2025 09:06:33 +0000 (11:06 +0200)]
feat: Log mtime for removed files in internal tempdir
Joel Rosdahl [Sun, 30 Mar 2025 08:46:48 +0000 (10:46 +0200)]
refactor: Extract timestamp format to util::format_iso8601_timestamp
Joel Rosdahl [Sat, 22 Mar 2025 12:55:22 +0000 (13:55 +0100)]
chore: Update NEWS
(cherry picked from commit
ddb73f16079a41b93ec7e65cb6769f9b5f7d3f68 )
Joel Rosdahl [Sat, 22 Mar 2025 12:52:52 +0000 (13:52 +0100)]
chore: Update NEWS
(cherry picked from commit
45018e4ecf606e1e0c83446fdc0c8516fda58958 )
Joel Rosdahl [Thu, 20 Mar 2025 18:49:06 +0000 (19:49 +0100)]
fix: Reset signal mask and defaults when executing compiler
Fixes regression in
1eb0aa5b9bcf74bd2ca6f161e406da64ccd349af where
posix_spawn was introduced to replace fork.
Fixes #1580.
Joel Rosdahl [Tue, 18 Mar 2025 17:32:59 +0000 (18:32 +0100)]
bump: Upgrade to cpp-httplib 0.20.0
Joel Rosdahl [Mon, 17 Mar 2025 18:28:57 +0000 (19:28 +0100)]
chore: Update NEWS
(cherry picked from commit
e05fab8e734c76e70d821ca7036e73a25dd564cf )
Joel Rosdahl [Thu, 13 Mar 2025 15:37:18 +0000 (16:37 +0100)]
fix: Fix log file locking on Windows
Fixes #1575.
Joel Rosdahl [Sun, 9 Mar 2025 15:06:45 +0000 (16:06 +0100)]
chore: Prepare for release
Joel Rosdahl [Sun, 9 Mar 2025 15:02:15 +0000 (16:02 +0100)]
chore: Update authors
Joel Rosdahl [Sun, 9 Mar 2025 14:47:52 +0000 (15:47 +0100)]
chore: Update NEWS
Joel Rosdahl [Sun, 9 Mar 2025 14:46:45 +0000 (15:46 +0100)]
test: Remove centos-7 Dockerfile
Joel Rosdahl [Mon, 3 Mar 2025 20:49:30 +0000 (21:49 +0100)]
test: Add alma-8 Dockerfile
kzlar [Wed, 5 Mar 2025 17:37:04 +0000 (19:37 +0200)]
feat: Add knowledge about options related to react-native builds (#1567)
- Add compopt entries for -ivfsoverlay, -fmodules-cache-path, -fmodule-map-file and -fbuild-session-file
- Add hashing of build session file mtime unless sloppiness flag is set
- Add unit tests for the flags above as well as an e2e test for -fbuild-session-file
Joel Rosdahl [Mon, 3 Mar 2025 19:13:47 +0000 (20:13 +0100)]
test: Add debian-12 to test-all-systems
Maksym Sobolyev [Mon, 3 Mar 2025 19:13:05 +0000 (11:13 -0800)]
test: Refresh dockerfiles and add Debian 12 (#1538)
- Make gcc package name configurable, this is to fix
"E: Package 'gcc-multilib' has no installation candidate"
on non-x86.
- Allow BASE_IMAGE to be overridden.
- Add Debian 12.
Joel Rosdahl [Sun, 2 Mar 2025 09:32:54 +0000 (10:32 +0100)]
refactor: Remove redundant args_info parameter from hash_common_info
Joel Rosdahl [Sat, 1 Mar 2025 09:00:43 +0000 (10:00 +0100)]
docs: Add space after CMake -D option
Joel Rosdahl [Thu, 27 Feb 2025 19:57:07 +0000 (20:57 +0100)]
bump: Upgrade to xxhash 1.5.7
Joel Rosdahl [Thu, 27 Feb 2025 19:55:23 +0000 (20:55 +0100)]
bump: Upgrade to xxhash 0.8.3
Joel Rosdahl [Thu, 27 Feb 2025 19:50:42 +0000 (20:50 +0100)]
bump: Upgrade to fmt 11.1.4
Joel Rosdahl [Thu, 27 Feb 2025 19:47:07 +0000 (20:47 +0100)]
bump: Upgrade to blake3 1.6.1
Joel Rosdahl [Thu, 27 Feb 2025 19:42:50 +0000 (20:42 +0100)]
bump: Upgrade to cpp-httplib 0.19.0
Joel Rosdahl [Mon, 24 Feb 2025 19:18:35 +0000 (20:18 +0100)]
refactor: Simplify nested ifs
Icarus Sparry (work) [Thu, 27 Feb 2025 19:30:51 +0000 (11:30 -0800)]
feat: Add knowledge about --offload-compress (#1571)
Clang has a feature where it can compress compiler products such as object files, and this includes when it is just called to preprocess the input file.
Ccache expects to be able to process the output of the preprocessor, and is not expecting a compressed binary file.
The fix is to remove this "--offload-compress" option using the existing facilities when preprocessing.
Oded S [Thu, 27 Feb 2025 19:22:47 +0000 (21:22 +0200)]
fix: Rename raw files correctly for >2 cache levels
LocalStorage::move_to_wanted_cache_level renames raw files incorrectly without
recalculating full hash filename with new prefix.
Joel Rosdahl [Sun, 9 Feb 2025 17:37:02 +0000 (18:37 +0100)]
ci: Test more Clang versions available in ubuntu-24
Joel Rosdahl [Sun, 9 Feb 2025 17:36:34 +0000 (18:36 +0100)]
ci: Drop ubuntu-20 in favor of ubuntu-22
Joel Rosdahl [Sat, 11 Jan 2025 14:40:17 +0000 (15:40 +0100)]
refactor: Simplify code for executing Windows processes
Joel Rosdahl [Sat, 25 Jan 2025 19:43:33 +0000 (20:43 +0100)]
chore: Simplify util::add_exe_suffix
Joel Rosdahl [Tue, 28 Jan 2025 17:07:23 +0000 (18:07 +0100)]
fix: Fix --trim-method mtime
Joel Rosdahl [Sat, 25 Jan 2025 19:32:29 +0000 (20:32 +0100)]
fix: Handle command line config options ending with /ccache properly
Fixes #1560.
Henrique Ferreiro [Fri, 10 Jan 2025 13:38:11 +0000 (14:38 +0100)]
feat: Add support for -f(debug|file)-compilation-dir (#1535)
Doekin [Fri, 10 Jan 2025 13:27:56 +0000 (21:27 +0800)]
feat: Support .bat and .cmd scripts as the compiler on Windows (#1546)
Joel Rosdahl [Mon, 6 Jan 2025 09:32:26 +0000 (10:32 +0100)]
docs: Fix typo
Joel Rosdahl [Mon, 6 Jan 2025 09:28:44 +0000 (10:28 +0100)]
docs: Clarify how LRU cleanup works
Closes #1543.
Henrique Ferreiro [Mon, 6 Jan 2025 08:40:17 +0000 (09:40 +0100)]
fix: Correctly call sha256sum on macOS (#1549)
sha256sum requires explicitly using `-` as the input file on macOS.
Nick Sarnie [Thu, 2 Jan 2025 18:34:34 +0000 (03:34 +0900)]
docs: Fix description of icx-cl (#1548)
Joel Rosdahl [Wed, 1 Jan 2025 13:13:24 +0000 (14:13 +0100)]
chore: Improve variable name in misc/clang-format
Joel Rosdahl [Wed, 1 Jan 2025 13:02:25 +0000 (14:02 +0100)]
perf: Avoid stat call for ~/.ccache if CCACHE_DIR is set
Closes #1541.
Joel Rosdahl [Wed, 1 Jan 2025 09:50:08 +0000 (10:50 +0100)]
chore: Add NOCACHE option to misc/build-in-docker
Nick Sarnie [Wed, 1 Jan 2025 12:50:39 +0000 (21:50 +0900)]
feat: Add support for Intel's LLVM-based compilers (#1533)
Joel Rosdahl [Mon, 30 Dec 2024 13:23:38 +0000 (14:23 +0100)]
feat: Add support for clang-cl option /showIncludes:user
Closes #1534.
Joel Rosdahl [Mon, 30 Dec 2024 13:15:57 +0000 (14:15 +0100)]
chore: Tweak comment and add const
Maksym Sobolyev [Mon, 30 Dec 2024 13:29:07 +0000 (05:29 -0800)]
feat: Add HTTP_STORAGE_BACKEND build option (#1537)
gitmodimo [Mon, 30 Dec 2024 13:11:25 +0000 (14:11 +0100)]
fix: Rewrite more paths with absolute_paths_in_stderr (#1539)
Joel Rosdahl [Sat, 16 Nov 2024 10:08:28 +0000 (11:08 +0100)]
refactor: Tweak includes
Joel Rosdahl [Sun, 10 Nov 2024 20:38:54 +0000 (21:38 +0100)]
fix: Synchonize writing to the log file
Fixes #350.
Joel Rosdahl [Sun, 10 Nov 2024 10:36:37 +0000 (11:36 +0100)]
enhance: Add util::FileLock
Joel Rosdahl [Fri, 15 Nov 2024 19:54:36 +0000 (20:54 +0100)]
ci: Use newest macos image
Matt Johnston [Fri, 15 Nov 2024 19:58:00 +0000 (03:58 +0800)]
fix: Pass -fprofile-abs-path through to GCC (#1531)
When caching support for -fprofile-abs-path was added, the argument was
omitted from the gcc commandline.
Joel Rosdahl [Fri, 15 Nov 2024 19:35:07 +0000 (20:35 +0100)]
build: Ignore Clang 19 -Wcast-function-type-mismatch warning
Joel Rosdahl [Sat, 9 Nov 2024 20:53:07 +0000 (21:53 +0100)]
fix: Add support for Clang -frandomize-layout-seed-file option
Fixes #1528.
Joel Rosdahl [Thu, 7 Nov 2024 20:54:38 +0000 (21:54 +0100)]
fix: Use util::getenv_path for environment variables that contain a path
This should improve support for non-ASCII paths in Windows.
Hopefully fixes #1409.
Joel Rosdahl [Thu, 7 Nov 2024 20:54:35 +0000 (21:54 +0100)]
fix: Use util::getenv_path_list to get PATH in find_executable_in_path
This should improve support for non-ASCII paths in Windows.
Joel Rosdahl [Thu, 7 Nov 2024 20:54:32 +0000 (21:54 +0100)]
chore: Store config paths in lexically normal form
Joel Rosdahl [Thu, 7 Nov 2024 20:54:27 +0000 (21:54 +0100)]
refactor: fs::path-ify helper functions in config.cpp
Joel Rosdahl [Fri, 8 Nov 2024 15:36:52 +0000 (16:36 +0100)]
refactor: Use util::lexically_normal
Joel Rosdahl [Fri, 8 Nov 2024 15:35:20 +0000 (16:35 +0100)]
enhance: Add util::lexically_normal
Joel Rosdahl [Thu, 7 Nov 2024 20:50:52 +0000 (21:50 +0100)]
enhance: Make util::getenv_path differentiate between unset and empty
Joel Rosdahl [Wed, 6 Nov 2024 20:51:00 +0000 (21:51 +0100)]
fix: Fix util::make_relative_path for trailing slash on Windows
Given an existing directory called "example", std::filesystem apparently
behaves like this on Windows:
std::filesystem::exists("example") -> true
std::filesystem::exists("example/") -> true
std::filesystem::exists("example\\") -> true
std::filesystem::equivalent("example", "example") -> true
std::filesystem::equivalent("example", "example/") -> false
std::filesystem::equivalent("example", "example\\") -> false
That's... well, unexpected. This makes util::make_relative_path buggy.
Fix this by pruning the trailing slash after normalizing the path.
Fixes #1518.
Joel Rosdahl [Tue, 5 Nov 2024 20:22:06 +0000 (21:22 +0100)]
fix: Ignore trailing slash in prefix in util::path_starts_with
Fixes #1265.
Joel Rosdahl [Sat, 2 Nov 2024 15:31:35 +0000 (16:31 +0100)]
chore: Mention correct Clang-Format version lower bar
Joel Rosdahl [Sat, 2 Nov 2024 15:12:32 +0000 (16:12 +0100)]
chore: Fix typo
Joel Rosdahl [Thu, 24 Oct 2024 15:00:36 +0000 (17:00 +0200)]
docs: Fix description of default cache_dir on non-macOS POSIX systems
As mentioned in discussion #1527.
Joel Rosdahl [Thu, 24 Oct 2024 14:34:52 +0000 (16:34 +0200)]
refactor: Rename "at file" to "response file" internally
Joel Rosdahl [Tue, 22 Oct 2024 16:48:27 +0000 (18:48 +0200)]
test: Add and use postdate function for making future filestamps
Joel Rosdahl [Mon, 21 Oct 2024 18:34:54 +0000 (20:34 +0200)]
refactor: Avoid const data members
C++ Core Guidelines C.12
Joel Rosdahl [Mon, 21 Oct 2024 18:30:05 +0000 (20:30 +0200)]
refactor: Properly move fds into execute()
C++ Core Guidelines F.18
Joel Rosdahl [Mon, 21 Oct 2024 18:29:26 +0000 (20:29 +0200)]
refactor: Restructure code to help Clang-Tidy understand it
Joel Rosdahl [Sun, 20 Oct 2024 16:27:10 +0000 (18:27 +0200)]
chore: Mark some return values as ignored
Joel Rosdahl [Sun, 20 Oct 2024 16:23:14 +0000 (18:23 +0200)]
refactor: Use C++17-style variable templates
Joel Rosdahl [Sun, 20 Oct 2024 16:19:29 +0000 (18:19 +0200)]
chore: Ignore useless cppcoreguidelines-avoid-do-while warning
Joel Rosdahl [Thu, 17 Oct 2024 18:44:31 +0000 (20:44 +0200)]
enhance: Add util::getenv_path and util::getenv_path_list