[ccache] --coverage and multiple -arch flags

Joel Rosdahl joel at rosdahl.net
Sun Oct 13 12:54:50 MDT 2013

On 11 September 2013 01:39, Mingus, Brian <bmingus at rosettastone.com> wrote:

> Does anyone know why --coverage isn't supported?

--coverage implies -ftest-coverage, which generates a .gcno file while
compiling. ccache would need to save and restore that file as well,
something that would be possible but isn't implemented.

> Additionally, multiple -arch flags are not supported. The source code says
> it would be too complicated. Isn't the resulting object file just a fat
> binary? Why not stick that in the cache?

The problem is that ccache needs to run the preprocessor explicitly, and
that fails when there are multiple -arch options. See also
https://bugzilla.samba.org/show_bug.cgi?id=7401, especially comment #2.

-- Joel

More information about the ccache mailing list