Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test: Fix test failure in GitHub CI mingw64 jobsHEADmaster | Joel Rosdahl | 2023-05-07 | 1 | -2/+4 |
| | |||||
* | doc: Add remote file storage example with URL-encoded space | Joel Rosdahl | 2023-05-06 | 1 | -1/+1 |
| | | | | As suggested in #1281. | ||||
* | bump: Upgrade to doctest 2.4.11 | Joel Rosdahl | 2023-04-22 | 1 | -9/+24 |
| | | | | Fixes #1194. | ||||
* | chore: Suppress clang-tidy warnings we don't want to fix | Joel Rosdahl | 2023-04-19 | 1 | -0/+3 |
| | |||||
* | refactor: Improve calculate_result_and_manifest_key parameters | Joel Rosdahl | 2023-04-19 | 1 | -12/+12 |
| | | | | | As suggested by clang-tidy (readability-suspicious-call-argument,-warnings-as-errors). | ||||
* | refactor: Use constructor member initializer lists | Joel Rosdahl | 2023-04-19 | 2 | -6/+4 |
| | | | | | As suggested by clang-tidy (cppcoreguidelines-prefer-member-initializer). | ||||
* | refactor: Use std::unique_ptr for data in util::Bytes | Joel Rosdahl | 2023-04-19 | 2 | -51/+44 |
| | |||||
* | chore: Sort .clang-tidy check list | Joel Rosdahl | 2023-04-19 | 2 | -64/+67 |
| | |||||
* | chore: Add comments for all statistics counters | Joel Rosdahl | 2023-04-19 | 1 | -0/+120 |
| | | | | As suggested in discussion #1271. | ||||
* | refactor: Extract MSVC debug option logic to a function | Joel Rosdahl | 2023-04-19 | 1 | -14/+19 |
| | |||||
* | fix: Limit MSVC debug flag detection to documented parameters (#1263) | Stephan Rohmen | 2023-04-19 | 1 | -3/+7 |
| | |||||
* | fix: Don't add additional depend mode options after Clang -- option | Joel Rosdahl | 2023-04-17 | 2 | -1/+16 |
| | | | | | | | | | | | | | With the depend mode enabled, ccache executes the original command line verbatim, potentially with the addition of a few extra options. However, for clang or clang-cl it is not possible to simply append the additional options to the end of the original command line since there may be a "--" option to indicate the end of options. Fix this by inserting the additional options directly after the compiler instead of at the end. Fixes #1273. | ||||
* | bump: Update to zstd 1.5.5 (#1272) | Raihaan Shouhell | 2023-04-17 | 1 | -2/+2 |
| | |||||
* | fix: Find Ccache version from lightweight Git tag | Joel Rosdahl | 2023-04-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Ccache calculates its version from a matching Git tag by using the "git describe" command, which only considers annotated tags. All ccache tags are annotated. However, when running a GitHub action job for a tag the local Git repository is (at least by default) a shallow clone with the tag being converted to a lightweight tag. This makes "git describe" not see the tag. Fix this by adding --tags to "git describe" to make it consider lightweight tags as well. Fixes #1270. | ||||
* | test: Add test for default value of inode_cache | Joel Rosdahl | 2023-04-17 | 1 | -0/+1 |
| | |||||
* | fix: Make output of "ccache -k max_size" parsable | Joel Rosdahl | 2023-04-17 | 1 | -8/+9 |
| | |||||
* | ci: Disable Windows 64-bit MSBuild jobs for now | Joel Rosdahl | 2023-04-17 | 1 | -20/+22 |
| | | | | | | The Windows VS2019 64-bit MSBuild and Windows VS2022 64-bit MSBuild GitHub actions jobs have started failing on master due to some changes in the CI environment. See issue #1278. | ||||
* | feat: Don't treat /Zi as unsupported for clang-cl (#1266) | Tobias Hieta | 2023-03-28 | 2 | -1/+28 |
| | | | | | | | | For MSVC /Zi is unsupported since it writes a additional .pdb file per each .obj file and it creates some messy interaction with ccache. But for clang-cl /Zi is actually treated as /Z7 and only embeds the debug info in the .obj file so it makes sense to allow this flag when compiling with clang-cl. | ||||
* | Update NEWS | Joel Rosdahl | 2023-03-22 | 1 | -0/+11 |
| | | | | (cherry picked from commit 9b1033f3ae534e5aad02c10f663b589b8f28c026) | ||||
* | build: Make ccache compile with clang-cl on Windows (#1260) | Tobias Hieta | 2023-03-16 | 3 | -6/+7 |
| | |||||
* | chore: Update copyright yearsv4.8 | Joel Rosdahl | 2023-03-12 | 2 | -2/+2 |
| | |||||
* | chore: Update NEWS | Joel Rosdahl | 2023-03-12 | 1 | -0/+141 |
| | |||||
* | Revert "bump: Upgrade to zstd 1.5.4" | Joel Rosdahl | 2023-03-12 | 1 | -2/+2 |
| | | | | | | This reverts commit 1853902f75567089a5ef46511573c7f352c6c232. zstd 1.5.4 requires CMake 3.18+ (by mistake), so downgrade for now. | ||||
* | chore: Fix typos | Joel Rosdahl | 2023-03-11 | 2 | -4/+4 |
| | |||||
* | chore: Add typos configuration | Joel Rosdahl | 2023-03-11 | 2 | -1/+10 |
| | |||||
* | feat: Support overriding MSVC /Z* options | Joel Rosdahl | 2023-03-08 | 3 | -4/+63 |
| | | | | | | | | | | | | MSVC options /Zi and /ZI are too hard since they produce separate PDB files. /Z7 is OK, but if the command line contains /Zi or /ZI followed by /Z7, MSVC will use the latter (with a warning) but ccache will still consider the command line too hard. This commit makes ccache understand that only the last /Z* option will be used and thus accepts the command line if the last /Z* option is /Z7. Closes #1239. | ||||
* | refactor: Improve InodeCache::get signature | Joel Rosdahl | 2023-03-07 | 4 | -60/+40 |
| | |||||
* | feat: Make it possible to disable ccache for a certain source code file | Joel Rosdahl | 2023-03-07 | 5 | -2/+50 |
| | |||||
* | enhance: Add util::read_file_part<std::string> implementation | Joel Rosdahl | 2023-03-07 | 3 | -17/+36 |
| | |||||
* | refactor: Use util::BitSet for hash_source_code_file | Joel Rosdahl | 2023-03-07 | 8 | -148/+173 |
| | |||||
* | refactor: Use util::BitSet for core::Sloppiness | Joel Rosdahl | 2023-03-05 | 6 | -89/+49 |
| | |||||
* | enhance: Add util::BitSet | Joel Rosdahl | 2023-03-05 | 3 | -0/+198 |
| | |||||
* | bump: Upgrade to doctest 2.4.10 | Joel Rosdahl | 2023-03-04 | 2 | -24/+96 |
| | |||||
* | feat: Improve cache size presentation and specification | Joel Rosdahl | 2023-03-04 | 12 | -199/+371 |
| | | | | | | | | | | | | | | | | | | Aligned how cache size is presented (in "ccache --show-stats", "ccache --show-compression", "ccache --recompress", debug logs, etc.) and specified (in configuration files, "ccache --max-size" and "ccache --trim-max-size"). The size units are now formatted according to the type of size unit prefix used for the max_size/CCACHE_MAXSIZE setting: a decimal size unit prefix (k/M/G/T with or without B for bytes) in max_size means using decimal size unit prefix for presented sizes, and similar for binary size unit prefixes (Ki/Mi/Gi/Ti with or without B for bytes). If no unit is specified, GiB is assumed, . For example, "ccache -M 10" means 10 GiB. Also aligned how cache sizes are calculated. Now all sizes are computed as "apparent size", i.e., rounded up to the disk block size. This means that the cache size in "--show-stats" and the sizes presented in "--show-compression" and "--recompress" now match. | ||||
* | enhance: Add util::TextTable::Cell::Cell(std::string_view) | Joel Rosdahl | 2023-03-04 | 2 | -5/+9 |
| | |||||
* | feat: Improve disk size calculation on Windows | Joel Rosdahl | 2023-03-04 | 2 | -4/+5 |
| | | | | Windows file system block size is typically 4096 bytes, not 1024. | ||||
* | enhance: Add util::likely_size_on_disk | Joel Rosdahl | 2023-03-04 | 2 | -2/+22 |
| | |||||
* | enhance: Add util::split_once(std::string&&, char) | Joel Rosdahl | 2023-03-04 | 3 | -9/+66 |
| | |||||
* | refactor: Move Util::parse_size to util | Joel Rosdahl | 2023-03-04 | 8 | -76/+77 |
| | |||||
* | refactor: Move Util::format_{human,parsable}_* to util | Joel Rosdahl | 2023-03-04 | 9 | -121/+121 |
| | |||||
* | feat: Improve error message when failing to parse command line config | Joel Rosdahl | 2023-03-04 | 1 | -1/+6 |
| | |||||
* | chore: Remove now superfluous "this->" in lambda | Joel Rosdahl | 2023-03-04 | 1 | -1/+1 |
| | | | | It was needed for compatibility with older compilers. | ||||
* | chore: Always add -Wdouble-promotion to dev mode flags | Joel Rosdahl | 2023-03-04 | 1 | -3/+1 |
| | | | | Clang 3.4 is not longer supported anyway. | ||||
* | chore: Enable and fix some more warnings | Joel Rosdahl | 2023-03-04 | 5 | -16/+16 |
| | |||||
* | chore: Clean up Redis helper scripts a bit (#1254) | Anders Björklund | 2023-02-22 | 2 | -13/+16 |
| | | | | - Support any version of manifest and result. - Skip over tmp dir and allow avoiding setnx. | ||||
* | feat: Add support for setting per-compilation config on command line | Joel Rosdahl | 2023-02-20 | 10 | -161/+260 |
| | | | | Closes #1035. | ||||
* | chore: Fix typos | Joel Rosdahl | 2023-02-16 | 2 | -2/+2 |
| | |||||
* | bump: Upgrade to zstd 1.5.4 | Joel Rosdahl | 2023-02-10 | 1 | -2/+2 |
| | |||||
* | fix: Log config and command line before finding compiler | Joel Rosdahl | 2023-02-09 | 1 | -16/+18 |
| | | | | | | | | If the compiler can't be found then ccache exits early and doesn't print the config and command line to the log. This makes it harder to debug problems with finding the compiler, like issue #1249. Improve this by logging "safe things" before searching for the compiler. | ||||
* | perf: Don't update stats file when there are no incremented counters | Joel Rosdahl | 2023-02-08 | 1 | -1/+1 |
| | | | | | This can happen for instance when ccache is about to exit with a fatal error. |