]> git.ipfire.org Git - thirdparty/ccache.git/commit
Refactor and clean up code for copying results to/from the cache
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Jan 2018 21:17:24 +0000 (22:17 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Jan 2018 21:17:24 +0000 (22:17 +0100)
commit9f766b417b84560ac18504df51ac94564dc8ac31
tree3891d3753069b689a14d4451c6b6e92f9c6cdc33
parent2ca735dbfbc335e3e7ef97137560929bac1f9cb0
Refactor and clean up code for copying results to/from the cache

Lots of cruft and copy pasta has collected during the years.

* It's enough to let get_file_from_cache detect missing files in the
  cache; no need to check before.
* Made the order of the handling of the different file types consistent
  in various places.
* Removed the tmp_cov, tmp_su and tmp_dwo variables. I cannot
  see why they just aren't redundant since the corresponding output_*
  variables already exist with the same value. Except for the "GCC has
  some funny rule" part, but that seems bogus anyway since tmp_* and
  output_* must be equal for things to work. Let's just ignore it for
  now.
* Removed the support for generating placeholders for .cov and .su files
  if the compiler doesn't create them. Modern compilers always create
  them, and I want to reduce code complexity.
ccache.c
test.sh