]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Add knowledge about --offload-compress (#1571)
authorIcarus Sparry (work) <98788394+amd-isparry@users.noreply.github.com>
Thu, 27 Feb 2025 19:30:51 +0000 (11:30 -0800)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2025 19:30:51 +0000 (20:30 +0100)
commitfba34380ac416501ed8f80c6983bdfb18e1d5d18
treee44bb7694d050e6f38347c3a79c5f4ac02bd2df5
parentee0b521393840bec7c55ab8e8147645abf82ba72
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.
src/ccache/compopt.cpp