Re: --coverage and multiple -arch flags

Joel Rosdahl <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAK8D=piAU1zUVa5BcKBAJrfUsM3URNi_gsKNv5bHxHYETEJxRw@mail.gmail.com>
On 11 September 2013 01:39, Mingus, Brian <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.